I read the newsgroup and found that I should use the -static flag (can someone
update the documentation) but I then got the following errors:
$ ghc -static main.hs
Compilation IS NOT required
Delete your object files and start again. The docs will be fixed for 4.08.2
(the online docs should
I deleted everything and started again using -static and it now works. In fact it
works really well. I replaced a linear lookup table implemented via lists with
FiniteMap - a 3 line change - and my program performed significantly better. And
because all this stuff is in the distribution it was