X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=utils%2Fext-core%2FREADME;h=0f6c16b93237cc4ea64937533a7c2b998df3f100;hp=7ec8adf09afd417abe934f93c6cfdcb45a424b56;hb=6e93da5e0a775b2bfb9c9f2bd31a36cc828521cb;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1 diff --git a/utils/ext-core/README b/utils/ext-core/README index 7ec8adf..0f6c16b 100644 --- a/utils/ext-core/README +++ b/utils/ext-core/README @@ -2,8 +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.2. I make no claims of portability. --tjc