The Minimal Haskell Program

2012-01-24

This is the complete source listing:

main = undefined

It is the hello-world of Haskell. This is what learning Haskell should start with. And it builds as expected:

$ ghc --make undef.hs
[1 of 1] Compiling Main             ( undef.hs, undef.o )
Linking undef ...
$ ./undef
undef: Prelude.undefined