Refactor TcRnDriver, and check exports on hi-boot files
authorsimonpj@microsoft.com <unknown>
Fri, 16 Mar 2007 13:38:50 +0000 (13:38 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 16 Mar 2007 13:38:50 +0000 (13:38 +0000)
commitec0b859902e717c24addff49f9a83efb927fb669
tree53982496db700e4ae864c65d733d3c670b86470b
parent7fcfb091b89d24e32faf95487208caca47fd0ab8
Refactor TcRnDriver, and check exports on hi-boot files

This patch refactors TcRnDriver to make the top-level structure
easier to understand.

The change was driven by Trac #924, and this patch fixes that bug.
When comparing a module against its hs-boot file, we must ensure that
the module exports everything that the hs-boot file exports.
compiler/iface/TcIface.lhs
compiler/rename/RnHsDoc.hs
compiler/rename/RnNames.lhs
compiler/rename/RnSource.lhs
compiler/typecheck/TcRnDriver.lhs
compiler/typecheck/TcRnMonad.lhs