Haskell by Example: Hello World

original
main = putStrLn "hello world"
$ runhaskell hello-world.hs
hello world

$ ghc hello-world.hs -o hello-world
$ ls
hello-world    hello-world.hi hello-world.hs hello-world.o

$ ./hello-world
hello world
back to index