import Data.Typeable main = do let x = 42
Standard input is empty
[1 of 1] Compiling Main ( prog.hs, prog.o )
prog.hs:4:10:
Couldn't match expected type `String'
against inferred type `TypeRep'
In the first argument of `putStr', namely `(typeOf x)'
In the expression: putStr (typeOf x)
In the expression:
do let x = 42
putStr (typeOf x)
Standard output is empty