GHC API: add checkAndLoadModule
authorSimon Marlow <simonmar@microsoft.com>
Tue, 6 Nov 2007 14:01:21 +0000 (14:01 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 6 Nov 2007 14:01:21 +0000 (14:01 +0000)
commit7379e82aafc7d0c1b839a13a20d52babeafed023
treedf42bd671865ac25f755dc902b48cf56a12ffbbb
parentc579872a374fa9e0d59471000b5496963dc8cd8d
GHC API: add checkAndLoadModule
Does what the name suggests: it performs the function of both
checkModule and load on that module, avoiding the need to process each
module twice when checking a batch of modules.  This will make Haddock
and ghctags much faster.

Along with this is the beginnings of a refactoring of the HscMain
interface.  HscMain now exports functions for separately running the
parser, typechecher, and generating ModIface and ModDetails.
Eventually the plan is to complete this interface and use it to
replace the existing one.
compiler/deSugar/Desugar.lhs
compiler/iface/MkIface.lhs
compiler/main/GHC.hs
compiler/main/HscMain.lhs
compiler/main/HscTypes.lhs
compiler/main/TidyPgm.lhs
compiler/typecheck/TcRnDriver.lhs