X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=utils%2Fext-core%2FREADME;h=0f6c16b93237cc4ea64937533a7c2b998df3f100;hp=6b8168d25b07b6d4e21acbc6c7a1637c15e9ef8d;hb=6e93da5e0a775b2bfb9c9f2bd31a36cc828521cb;hpb=5d1ba397950bd700768933cc573f04a804f6e32a diff --git a/utils/ext-core/README b/utils/ext-core/README index 6b8168d..0f6c16b 100644 --- a/utils/ext-core/README +++ b/utils/ext-core/README @@ -2,10 +2,14 @@ A set of example programs for handling external core format. In particular, typechecker and interpreter give a precise semantics. -All can be built using, e.g., +To build, run "make". -happy -o Parser.hs Parser.y -ghc --make -package text -fglasgow-exts -o Driver Driver.hs +To run the checker and interpreter (which currently aren't working anyway), +you need to generate External Core for all the base, integer and ghc-prim +libraries. This can be done by adding "-fext-core" to the GhcLibHcOpts in +your build.mk file, then running "make" under libraries/. +Then you need to edit Driver.hs and change "baseDir" to point to your GHC +libraries directory. -Most recently tested with GHC 6.8.1. I make no claims of portability. --tjc +Most recently tested with GHC 6.8.2. I make no claims of portability. --tjc