FIX part of #1372, improvements to the recompilation checker
authorSimon Marlow <simonmar@microsoft.com>
Fri, 3 Aug 2007 10:20:45 +0000 (10:20 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 3 Aug 2007 10:20:45 +0000 (10:20 +0000)
commitde21f53e25eb67248ba416187d34ba7ec9ec143a
tree7ff59da30dccb7f7489c1c9649ebe5205f176efb
parentbb66ce578f2ef5cbeb35de9719f0839a32fbeb35
FIX part of #1372, improvements to the recompilation checker
This patch adds a check that each imported module is listed in
the dependencies from the previous interface.  It catches the
following cases and forces recompilation:
   - an exposed package has been upgraded
   - we are compiling with different package flags
   - a home module that was shadowing a package module has been removed
   - a new home module has been added that shadows a package module

I haven't yet added the package timestamping as described in #1372.
compiler/iface/MkIface.lhs
compiler/main/DriverPipeline.hs