A basic "Hello, World!" program in Haskell can be expressed concisely in just one or two lines:
main :: IO ()
main = putStrLn "Hello, World!"
The first line is an optional type annotation, indicating that main is a value of type IO (), representing an I/O action which "...