Another round of External Core fixes
authorTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 10 Apr 2008 04:37:27 +0000 (04:37 +0000)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 10 Apr 2008 04:37:27 +0000 (04:37 +0000)
commit4c6a3f787abcaed009a574196d82237d9ae64fc8
tree44064a46730e313030cb20b34045a22dcc823bd5
parentcc52f604e67ad4b45ce449e7b957379f7a85855f
Another round of External Core fixes

With this patch, GHC should now be printing External Core in a format
that a stand-alone program can parse and typecheck. Major bug fixes:

- The printer now handles qualified/unqualified declarations correctly
   (particularly data constructor declarations)
- It prints newtype declarations with enough information to
  typecheck code that uses the induced coercions (this required a
syntax change)
- It expands type synonyms correctly

Documentation and external tool patches will follow.
compiler/coreSyn/ExternalCore.lhs
compiler/coreSyn/MkExternalCore.lhs
compiler/coreSyn/PprExternalCore.lhs
compiler/main/HscMain.lhs
compiler/prelude/TysPrim.lhs