patch applied (ghc): First cut at reviving the External Core tools
Tim Chevalier
chevalier at alum.wellesley.edu
Sun Mar 9 23:05:00 EDT 2008
Sun Mar 9 19:58:21 PDT 2008 Tim Chevalier <chevalier at alum.wellesley.edu>
* First cut at reviving the External Core tools
I updated the External Core AST to be somewhat closer to reality (where reality is defined by the HEAD), and got all the code to compile under GHC 6.8.1. (That means it works, right?)
Major changes:
- Added a Makefile.
- Core AST:
- Represented package names and qualified module names.
- Added type annotation on Case exps.
- Changed Coerce to Cast.
- Cleaned up representation of qualified/unqualified names.
- Fixed up wired-in module names (no more "PrelGHC", etc.)
- Updated parser/interpreter/typechecker/prep for the new AST.
- Typechecker:
- Used a Reader monad to pass around the global environment and top module name.
- Added an entry point to check a single expression.
- Prep:
- Got rid of typeofExp; it's now defined in terms of the typechecker.
M ./utils/ext-core/Check.hs -53 +106
M ./utils/ext-core/Core.hs -8 +48
M ./utils/ext-core/Driver.hs +1
M ./utils/ext-core/Interp.hs -22 +23
M ./utils/ext-core/Lex.hs -1 +1
A ./utils/ext-core/Makefile
M ./utils/ext-core/ParseGlue.hs -1 +2
M ./utils/ext-core/Parser.y -13 +26
M ./utils/ext-core/Prep.hs -43 +29
M ./utils/ext-core/Prims.hs -30 +34
M ./utils/ext-core/Printer.hs -8 +17
M ./utils/ext-core/README +2
More information about the Cvs-ghc
mailing list