public
Description: Official Git mirror of the Glasgow Haskell Compiler. Note: Building from the Git repo is not yet possible.
Homepage: http://haskell.org/ghc/
Clone URL: git://github.com/ghc-hq/ghc.git
ghc /
name age message
file .darcs-boring Loading commit data...
file ANNOUNCE
file HACKING
file LICENSE
file MAKEHELP Tue Jun 16 01:57:08 -0700 2009 suggest "cd <dir>; make help" [Simon Marlow]
file Makefile Sun Sep 27 12:17:40 -0700 2009 Change where bindists are made We now do all t... [Ian Lynagh]
file README Mon Oct 12 02:51:42 -0700 2009 More README updates [Ian Lynagh]
file SUBMAKEHELP
file aclocal.m4 Mon Oct 12 14:34:14 -0700 2009 Refactor some configure.ac stuff [Ian Lynagh]
directory bindisttest/
file boot
file boot-pkgs Thu Sep 24 10:10:25 -0700 2009 Make some sed more portable: Use \{0,1\} instea... [Ian Lynagh]
directory compiler/ Tue Oct 20 15:05:17 -0700 2009 Use our in-tree mingw perl [Ian Lynagh]
file config.guess Tue Jan 27 01:53:43 -0800 2009 Fix detection of i386 vs. x86_64 for -pc-solari... [Simon Marlow]
file config.sub Fri Jan 16 01:53:11 -0800 2009 Update config.guess, config.sub and install.sh ... [Simon Marlow]
file configure.ac
file darcs-all
directory distrib/ Sun Oct 04 03:39:08 -0700 2009 Make the bindist AC_INIT line match the main co... [Ian Lynagh]
directory docs/ Tue Oct 20 00:42:29 -0700 2009 Add flags -fno-specialise, -fno-float-in, and d... [Simon Peyton Jones]
directory driver/
file extra-gcc-opts.in
file ghc.mk Tue Oct 20 14:56:27 -0700 2009 Stop creating $(INPLACE_LIB)/perl.exe We now u... [Ian Lynagh]
file ghc.spec.in
directory ghc/
directory includes/ Thu Oct 15 03:02:12 -0700 2009 Add events to show when GC threads are idle/wor... [Simon Marlow]
file install-sh
directory libffi/ Fri Oct 23 07:31:00 -0700 2009 Get the tarballs from a darcs repo, rather than... [Ian Lynagh]
directory libraries/ Tue Oct 06 13:34:41 -0700 2009 Add the new bytestring to the repository [Ian Lynagh]
directory mk/ Fri Oct 23 07:35:12 -0700 2009 Don't build PS/PDF docs when validating dblate... [Ian Lynagh]
file packages Fri Oct 23 07:31:00 -0700 2009 Get the tarballs from a darcs repo, rather than... [Ian Lynagh]
directory quickcheck/ Sat May 17 07:10:54 -0700 2008 remove the last bits of the ghc/ subdir [Simon Marlow]
directory rts/
directory rules/
file sync-all Sun Jan 04 10:46:52 -0800 2009 Fix sync-all: Check for --complete/partial befo... [Ian Lynagh]
directory utils/ Wed Oct 07 03:12:39 -0700 2009 Make the unpleasant sed one-liner less unpleasant [Matthias Kilian]
file validate
README
The Glasgow Haskell Compiler
============================

This is the source tree for GHC, a compiler and interactive
environment for the Haskell functional programming language.

For more information, visit GHC's web site:

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

Information for developers of GHC can be found here:

  http://hackage.haskell.org/trac/ghc/


Getting the Source
==================

There are two ways to get a source tree:

  1. Download source tarballs
  ---------------------------

  Download the GHC source distribution:

      ghc-<version>-src.tar.bz2

  which contains GHC itself and the "boot" libraries.

  2. Check out the source code from darcs
  ---------------------------------------

  The recommended way to get a darcs checkout is to start off by
  downloading a snapshot with a name like:

      ghc-HEAD-2009-09-09-ghc-corelibs-testsuite.tar.bz2

  from:

      http://darcs.haskell.org/

  and then untar it and bring it up-to-date with:

     $ cd ghc
     $ ./darcs-all get


  Alternatively you can use darcs to get the repos, but it will take a
  lot longer. First get the GHC darcs repository:

    $ darcs get http://darcs.haskell.org/ghc/

  Then run the darcs-all script in that repository
  to get the other repositories:

     $ cd ghc
     $ chmod +x darcs-all
     $ ./darcs-all get

  This checks out the "boot" packages.


Building & Installing
=====================

For full information on building GHC, see the GHC Building Guide [3].
Here follows a summary - if you get into trouble, the Building Guide
has all the answers.

NB. you need GHC installed in order to build GHC, because the compiler
is itself written in Haskell.  For instructions on how to port GHC to a
new platform, see the Building Guide.

If you're building from darcs sources (as opposed to a source
distribution) then you also need to install Happy [4] and Alex [5].

For building library documentation, you'll need Haddock [6].  To build
the compiler documentation, you need a good DocBook XML toolchain and
dblatex.

Quick start:  the following gives you a default build:

    $ sh boot
    $ ./configure
    $ make
    $ make install

The "sh boot" step is only necessary if this is a tree checked out
from darcs.  For source distributions downloaded from GHC's web site,
this step has already been performed.

These steps give you the default build, which includes everything
optimised and built in various ways (eg. profiling libs are built).
It can take a long time.  To customise the build, see the file
HACKING.



References
==========

 [1] http://www.haskell.org/ghc/                        GHC Home Page
 [2] http://hackage.haskell.org/trac/ghc                GHC Developer's Wiki
 [3] http://hackage.haskell.org/trac/ghc/wiki/Building  Building Guide
 [4] http://www.haskell.org/happy/                      Happy
 [5] http://www.haskell.org/alex/                       Alex
 [6] http://www.haskell.org/haddock/                    Haddock


Contributors
============

Please see

   http://www.haskell.org/ghc/contributors.html