fork download
  1. main = 1+1
  2.  
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:1:7:
    No instance for (Num (IO a))
      arising from the literal `1' at prog.hs:1:7
    Possible fix: add an instance declaration for (Num (IO a))
    In the first argument of `(+)', namely `1'
    In the expression: 1 + 1
    In the definition of `main': main = 1 + 1
stdout
Standard output is empty