You can compile the examples using ghc
.
$ ghc --make example.hs
Fibonacci is like the hello world in Haskell, you can test this example by compiling it and pass a number as argument, for example to generate a the list of first 1000 Fibonacci numbers:
./fibs 1000