fork download
  1. import Data.Typeable
  2. main = do
  3. let x = 42
  4. putStr(tyConString(typeRepTyCon(typeOf1(42))))
  5.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
[1 of 1] Compiling Main             ( prog.hs, prog.o )

prog.hs:4:43:
    No instance for (Num (t a))
      arising from the literal `42' at prog.hs:4:43-44
    Possible fix: add an instance declaration for (Num (t a))
    In the first argument of `typeOf1', namely `(42)'
    In the first argument of `typeRepTyCon', namely `(typeOf1 (42))'
    In the first argument of `tyConString', namely
        `(typeRepTyCon (typeOf1 (42)))'
stdout
Standard output is empty