Version 5.04.2 (released 4 December 2002)

The 5 series features some major changes over the 4 series: in short, an interactive development environment, and significantly faster compilation for large programs. 5.04.2 is the latest stable member of this series.

Online Docs


  • The source distribution needs an installed GHC 4.08.X or 5.X to build. If there isn't a binary distribution for your platform (any version), then you'll need to consult the section on Porting GHC in the Building Guide.

  • The OS-specific packages (eg. RPMs on Linux) are generally a better bet than the vanilla .tar.bz2 binary bundles, because they will check for dependencies and allow the package to be uninstalled at a later date.

    However, if you don't have permission to install binaries on your system, or you want to install somewhere other than the default place (usually /usr or /usr/local), then you'll need to use the .tar.bz2 binary bundle.

Source Distribution



NOTE: you must use GCC 2.95 on Sparc. There is a known bug with GCC 3.2 and later which causes incorrect code to be generated.

This is a complete build, with profiling libraries and docs.

NOTE: you'll need, which resolves to /usr/lib/ on our build machine. You should ensure you have this before you start, since without it GHC won't work at all.


This is a Windows Installer for Microsoft Windows 95, 98, ME, NT, 2000 and XP, prepared by Sigbjorn Finne. It's a complete build, as above.

This installer relies on the Windows Installer runtime to operate. If, after having downloaded the above file, double-clicking on the MSI file doesn't start up the installer, the likely cause is that you don't have the Windows Installer runtime installed on your machine. You can download it from Microsoft:

Install the appropriate version, then double-click again on the MSI file.


FreeBSD users can install a binary package of ghc by saying pkg_add -r ghc provided the package exists on whatever mirror site your system is set up to use.

To install from source instead, make sure your copy of /usr/ports is up to date, and say cd /usr/ports/lang/ghc && make install.


The OpenBSD/x86 packages were prepared by Don Stewart:

MacOS X 10.2 (Jaguar)

It's a double-clickable disk image containing an Apple Installer Package (.pkg). It includes profiling & GHCi, but no documentation (use the online docs for now). GHCi is now statically linked with Readline, but the readline library itself is not included, so you will have to install that separately if you link anything with -package util.

MacOS X packages were prepared by Wolfgang Thaller.