[project @ 2005-03-30 16:24:04 by simonmar]
authorsimonmar <unknown>
Wed, 30 Mar 2005 16:24:05 +0000 (16:24 +0000)
committersimonmar <unknown>
Wed, 30 Mar 2005 16:24:05 +0000 (16:24 +0000)
commit6720aae478aeffab9d93b33b76e8718130cd4a7b
tree2076b6118f0b51e7abce735da561c6fd39148c8a
parent34bfc56e5f2c5374bcc4f67fbd0692f0c14fe029
[project @ 2005-03-30 16:24:04 by simonmar]
Add support for partial reloads in the GHC API.

This is mainly for VS: when editing a file you don't want to
continually reload the entire project whenever the current file
changes, you want to reload up to and including the current file only.
However, you also want to retain any other modules in the session that
are still stable.

I added a variant of :reload in GHCi to test this.  You can say
':reload M' to reload up to module M only.  This will bring M up to
date, and throw away any invalidated modules from the session.
ghc/compiler/ghci/InteractiveUI.hs
ghc/compiler/main/DriverMkDepend.hs
ghc/compiler/main/DriverPipeline.hs
ghc/compiler/main/GHC.hs
ghc/compiler/main/HscTypes.lhs
ghc/compiler/utils/Digraph.lhs