fork download
  1. main :: Char
  2. main = "Hi"
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:2:0:
    Couldn't match expected type `IO a' against inferred type `Char'
    In the first argument of `GHC.TopHandler.runMainIO', namely `main'
    When checking the type of the function `main'

prog.hs:2:7:
    Couldn't match expected type `Char' against inferred type `[Char]'
    In the expression: "Hi"
    In the definition of `main': main = "Hi"
stdout
Standard output is empty