fork download
  1. x = 10
  2. y = 10
  3.  
  4. main = putStrLn $ read $ (x + y)
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:26:
    No instance for (Num String)
      arising from a use of `+' at prog.hs:4:26-30
    Possible fix: add an instance declaration for (Num String)
    In the second argument of `($)', namely `(x + y)'
    In the second argument of `($)', namely `read $ (x + y)'
    In the expression: putStrLn $ read $ (x + y)
stdout
Standard output is empty