The Glasgow Haskell Compiler is a robust, fully-featured, optimising compiler for Haskell 98, GHC compiles Haskell to either native code or C. It implements numerous experimental language extensions to Haskell 98; for example: concurrency, a foreign language interface, multi-parameter type classes, scoped type variables, existential and universal quantification, unboxed types, exceptions, weak pointers, and so on. GHC comes with a generational garbage collector, and a space and time profiler.
Installation instructions for Mac
This is a binary distribution for Mac OS X 10.5 (Leopard), prepared by Manuel Chakravarty. You will also need Xcode 3.0 (as available from the Leopard upgrade/install DVD or developer.apple.com) and readline 5.2 (preferably installed via macports in /opt/local). If you have GMP.framework installed (a leftover from 10.4), remove it first.
If you encounter the following error on Mac/Leopard, read the instructions here or read the ghc-mac-install-notes.
dyld: Library not loaded: /opt/local/lib/libreadline.5.2.dylib
Referenced from: /usr/local/lib/ghc-6.8.2/ghc-6.8.2
Reason: image not found