Version 8.0.2 (released 11th January 2017)
Take Notice
The packages on this page include only the GHC compiler. For most users,
we recommend installing a
proper Haskell distribution
instead of GHC alone. A distribution includes a recent GHC release as well
as other important tools (such as cabal-install
, for
installing libraries), and potentially a broader set of libraries known to
work together.
Bundled packages and cabal-install
GHC 8.0 only works
with cabal-install
version 1.24 or later. Please upgrade if you have an older version of
cabal-install
.
Optional LLVM dependency
GHC has an optional code generator targeting the LLVM compiler framework which can produce faster code for some programs. If you would like to use the LLVM backend, you'll need to install LLVM 3.7 from an upstream binary distribution or via your distribution's package manager.
Contents
Distribution packages
GHC is packaged for a number of operating systems and distributions. While they may lag behind the latest GHC release, advantages such as dependency checking and ease of uninstallation mean we recommend using them anyway, unless you have a particular need for new features or bug fixes.
Binary Packages
The operating system-specific packages (e.g. RPM or .deb packages on Linux) are generally a better bet than the vanilla .tar.xz 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 (/usr or /usr/local on a Unix system), then you'll need to use a .tar.xz binary bundle.
SHA-256 hashes for all of these binary distributions are available here.
Supported platforms:
Supported platforms
Linux (x86)
Debian 8
Generic i386 Linux. This is a complete build, including
interactive system, profiling libraries and documentation. It was
made on a Debian 8 "Jessie" system and requires
libgmp.so.10
(typically GMP 5.x).
- ghc-8.0.2-i386-deb8-linux.tar.xz (107.4 MB, sig)
Debian 7
Generic i386 Linux. This is a complete build, including
interactive system, profiling libraries and documentation. It was
made on a Debian 7 "Wheezy" system and requires
libgmp.so.10
(typically GMP 5.x).
- ghc-8.0.2-i386-deb7-linux.tar.xz (107.6 MB, sig)
Centos 6.7
Generic i386 Linux. This is a complete build, including
interactive system, profiling libraries and documentation. It was
made on a CentOS 6.7 system and requires
libgmp.so.3
(typically GMP 4.x).
- ghc-8.0.2-i386-centos67-linux.tar.xz (106.6 MB, sig)
Note: If you have too old a version of libc, then you will get an error like "floating point exception" from the binaries in these bindists. You will need to either upgrade your libc (we're not sure what the minimum version required is), or use a binary package built for your distribution instead.
Linux (x86_64)
Debian 8
Generic amd64 Linux. This is a complete build, including
interactive system, profiling libraries and documentation. It was
made on a Debian 8 "Jessie" system and requires
libgmp.so.10
(typically GMP 5.x).
- ghc-8.0.2-x86_64-deb8-linux.tar.xz (109.1 MB, sig)
Debian 7
Generic amd64 Linux. This is a complete build, including
interactive system, profiling libraries and documentation. It was
made on a Debian 7 "Wheezy" system and requires
libgmp.so.10
(typically GMP 5.x).
- ghc-8.0.2-x86_64-deb7-linux.tar.xz (107.5 MB, sig)
Centos 6.7
Generic amd64 Linux. This is a complete build, including interactive
system, profiling libraries and documentation. It was made on a CentOS
6.7 system and requires
libgmp.so.3
(typically GMP 4.x).
- ghc-8.0.2-x86_64-centos67-linux.tar.xz (106.7 MB, sig)
Note: If you have too old a version of libc, then you will get an error like "floating point exception" from the binaries in these bindists. You will need to either upgrade your libc (we're not sure what the minimum version required is), or use a binary package built for your distribution instead.
Linux (ARMv7)
- ghc-8.0.2-armv7-deb8-linux.tar.xz (136.7 MB, sig)
Generic 32-bit ARM Linux.
Note: These builds were prepared on Debian Jessie. Note that ARM
support is still a bit experimental. This build is intended for use
with LLVM 3.7
(available in
Debian Jessie). Due
to bugs
in BFD ld
it is necessary to use the gold
linker.
Windows (x86)
- ghc-8.0.2-i386-unknown-mingw32-win10.tar.xz (143.9 MB, sig)
This is compatible with Microsoft Windows Vista and later, including the Windows 10 Creator's Update. It also includes support for compiling C++ files.
Note that this distribution was produced with a patched source tree due to a Windows-specific bug noticed late in the release cycle.
Windows (x86)
- ghc-8.0.2-i386-unknown-mingw32.tar.xz (140.2 MB, sig)
This is compatible with Microsoft Windows Vista and later, excluding the Windows 10 Creator's Update. It also includes support for compiling C++ files.
Note that this distribution was produced with a patched source tree due to a Windows-specific bug noticed late in the release cycle.
Windows 64-bit (x86_64)
- ghc-8.0.2-x86_64-unknown-mingw32-win10.tar.xz (145.2 MB, sig)
This is compatible with Microsoft Windows Vista and later, including the Windows 10 Creator's Update. It also includes support for compiling C++ files.
Note that this distribution was produced with a patched source tree due to a Windows-specific bug noticed late in the release cycle.
Windows 64-bit (x86_64)
- ghc-8.0.2-x86_64-unknown-mingw32.tar.xz (142.2 MB, sig)
This is compatible with Microsoft Windows Vista and later, excluding the Windows 10 Creator's Update. It also includes support for compiling C++ files.
Note that this distribution was produced with a patched source tree due to a Windows-specific bug noticed late in the release cycle.
Mac OS X (x86_64)
- ghc-8.0.2-x86_64-apple-darwin.tar.bz2 (178.2 MB)
- ghc-8.0.2-x86_64-apple-darwin.tar.xz (108.7 MB, sig)
This is a distribution for Mac OS X, 10.7 or later. The package requires the command line tools package of Xcode 4 or XCode 5 to be installed. You can find Xcode at http://developer.apple.com/.
FreeBSD (x86_64)
- ghc-8.0.2-x86_64-portbld-freebsd.tar.xz (106.2 MB, sig)
Produced by Páli Gábor János. See the FreeBSD readme for details.
FreeBSD (i386)
- ghc-8.0.2-i386-portbld-freebsd.tar.xz (106.6 MB, sig)
Produced by Páli Gábor János. See the FreeBSD readme for details.
OpenBSD 5.9 (x86_64)
- ghc-8.0.2-x86_64-unknown-openbsd.tar.xz (95.4 MB, sig)
Note: OpenBSD 5.9/x86_64 binary distribution supports shared libraries and uses system (ports) provided GMP, ICONV and FFI libraries. If you do not have them installed you need to do this by using the pkg_add gmp libiconv libffi command.
Produced by Karel Gardas.
AIX 7.1 (PowerPC)
- ghc-8.0.2-powerpc-ibm-aix7.1.0.0.tar.xz (90.3 MB, sig)
Produced by Herbert Valerio Riedel.
Solaris 2.11 (i386)
- ghc-8.0.2-i386-unknown-solaris2.tar.xz (105.6 MB, sig)
Note: Solaris 2.11/i386/x86_64/SPARC binary distribution supports shared libraries and uses system provided GMP library. If you do not have it installed you need to do this by using
pkg install library/gmpcommand.
Produced by Karel Gardas.
Solaris 2.11 (x86_64)
Unfortunately x86-64 Solaris support is currently broken due to #13091.
Source Distribution
The source tarballs provide everything necessary to build the compiler, interactive system, and a minimal set of libraries. For more information on building, see the building guide.
- ghc-8.0.2-src.tar.xz (10.2 MB, sig)
Note that, due to a bug noticed late in the release cycle, this source tree will need to be patched with this patch on Windows. See #13100 for details.
The testsuite provides a thorough set of tests for validating your build. Unpack this tarball on top of the regular source distribution in order to run the testsuite (see the testing guide for details).
- ghc-8.0.2-testsuite.tar.xz (1.6 MB, sig)
Building on Windows requires a set of additional tools. Extract this tarball on top of the regular source distribution,
- ghc-8.0.2-windows-extra-src.tar.xz (91.7 MB, sig)
The source distribution needs an installed GHC (version 7.10 at least). If your platform isn't currently supported with a binary distribution, then you'll need to consult the section on Porting GHC in the Building Guide.