fork download
  1. main = print ((2 + 2 :: Int) == "4")
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:33: error:
    • Couldn't match expected type ‘Int’ with actual type ‘[Char]’
    • In the second argument of ‘(==)’, namely ‘"4"’
      In the first argument of ‘print’, namely ‘((2 + 2 :: Int) == "4")’
      In the expression: print ((2 + 2 :: Int) == "4")
stdout
Standard output is empty