Haskell libraries converted to external Core representation from GHC version 7.0.3.
A copy of Haskell libraries from GHC, which are converted to external Core representation (.hcr file extension). These are used to generate .hcj files for the haskell-python project <https://bitbucket.org/cfbolz/haskell-python>.
Steps to create hcr files for GHC libraries
Warning: doesn't work yet
- Set up system for building GHC
- Get GHC sources
- If your using sources from git checkout/clone, run "perl boot".
- Install extcore package
- Copy 'mk/build.mk.template' to 'mk/build.mk'.
- Use "BuildFlavour = quick" and add "-fext-core' to GhcLibHcOpts option in mk/build.mk.
- Run "autoreconf"
- Run "./configure"
- Run "make"
Command line to build some GHC library files
ghc -fext-core -Wall -fno-warn-name-shadowing -fno-warn-orphans -XCPP -XMagicHash -XUnboxedTuples -XPatternGuards -XRank2Types -XScopedTypeVariables -XDeriveDataTypeable -XFlexibleInstances <file>
These files are copied from GHC repository, and each subfolder may contain a LICENSE file specifying its license. Otherwise the files are under the GHC license, see the LICENSE file.