main :: Char main = "Hi"
Standard input is empty
[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"
Standard output is empty