how to print hello world in haskell code example Example: hello world in haskell main :: IO () main = putStrLn "Hello, World!"