Source

ghc_libraries /

Filename Size Date modified Message
Cabal
Win32
array
base
bin-package-db
bytestring
containers
directory
extensible-exceptions
filepath
ghc-binary
ghc-prim
haskeline
haskell2010
haskell98
hpc
integer-gmp
integer-simple
mtl
old-locale
old-time
pretty
process
random
template-haskell
terminfo
time
unix
utf8-string
xhtml
28 B
1.6 KB
1.5 KB

GHC Libraries

Haskell libraries converted to external Core representation from GHC version 7.0.3.

About

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

  1. Set up system for building GHC
  2. Get GHC sources
  3. If your using sources from git checkout/clone, run "perl boot".
  4. Install extcore package
  5. Copy 'mk/build.mk.template' to 'mk/build.mk'.
  6. Use "BuildFlavour = quick" and add "-fext-core' to GhcLibHcOpts option in mk/build.mk.
  7. Run "autoreconf"
  8. Run "./configure"
  9. 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>

License

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.