CSE Home Computing CD
  Category Index | Alphabetical Index | Course Index | Guide | Credits

GHC

Category: Development
http://www.haskell.org/ghc/

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.

% ghci
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
Trace/BPT trap

Courses

Files

Windows    ghc-6.8.2-i386-windows.exe
Linux    ghc-6.8.2-i386-unknown-linux.tar.bz2
Documentation    ghc-mac-install-notes.txt
Macintosh Intel    ghc-6.8.2-i386-apple-darwin.tar.bz2
   gmp-4.2.2.tar.bz2
   readline-5.2.tar.gz