summaryrefslogtreecommitdiff
path: root/testsuite/tests/printer/Ppr007.hs
blob: 65ff9a7b63f2d12a612f1c2a2e7ff84d52f853df (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE ApplicativeDo #-}
module Ppr007 where

g :: IO ()
g = do
  x <- getChar
  'a' <- return (3::Int) -- type error
  return ()