X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=utils%2Fext-core%2FREADME;h=6a0dc137c506e77a9a7d95105c40c9f4945bea10;hb=1d47f08d196252b4ee5f4d5b5af2fb4945720762;hp=bb5f3aade52e3cefb175b6ff4b97d6aa5b6492d0;hpb=8bfeb25ae78e99c7014113468b0057342db4208f;p=ghc-hetmet.git diff --git a/utils/ext-core/README b/utils/ext-core/README index bb5f3aa..6a0dc13 100644 --- a/utils/ext-core/README +++ b/utils/ext-core/README @@ -4,6 +4,12 @@ In particular, typechecker and interpreter give a precise semantics. --------------------- tjc April/May 2008: +==== Documentation ==== + +Documentation for the External Core format lives under docs/ext-core in the +GHC tree. If you are building from HEAD, do not rely on the version of the +External Core documentation that lives in haskell.org -- it is obsolete! + ==== Notes ==== The checker should work on most programs. Bugs (and infelicities) @@ -48,11 +54,20 @@ running "make" under libraries/. Then you need to edit Driver.hs and change "baseDir" to point to your GHC libraries directory. -Once you've done that: -1. make prims (to generate the primops file) -2. make -3. make nofibtest (to run the parser/checker on all nofib programs... +Once you've done that, the ext-core library can be built in the usual +Cabal manner: +1. runhaskell Setup.lhs configure +2. runhaskell Setup.lhs build +3. runhaskell Setup.lhs install + +Then, you can build the example Driver program with: + ghc -package extcore Driver.hs -o Driver + +And finally, you can use the included Makefile to run tests: + + make nofibtest (to run the parser/checker on all nofib programs... for example.) + make libtest (to typecheck all the libraries) Tested with GHC 6.8.2. I make no claims of portability.