Hello world

File hello.hs

main = putStr "Hello world.\n"

-- Haskell98 Hello world program
NB.
putStr :: String -> IO ()
putStrLn :: String -> IO ()
putChar :: Char -> IO ()
File hello02.hs

main = putStr "Hello " >> putStr "World" >> putStrLn "."

-- Another Hello world
NB. The operator >> combines two (or more) IO actions
7/2002