Main.main
.
This must have type IO ()
, as defined in PreludeMonadicIO
.
If a program p terminates without calling exitWith
explicitly,
it is treated identically to the computation >>
exitWith ExitSuccess
.
> module Main where > > main :: IO () > main = putStr "Hello World\n"