simonpj 2003/06/16 08:31:14 PDT
Modified files:
ghc/compiler/typecheck TcRnDriver.lhs
Log:
----------------------------------
Fix the "no interface file" bug
----------------------------------
The problem was this.
* Module A imports module B
* ghc --make A
* Remove B.hs, B.hi, and edit A so that it doesn't import B
* ghc --make A
Then GHC would fail, saying it can't find an interface file for B.
Reason: when loading A.hi (loadOldIface) it makes a Name for the
usages it finds. To make a Name for B things, it needs B's package;
but it can't find B.hi, so it bombs instead.
Solution: don't complain if loadOldIface fails; instead behave just like
if you can't find A.hi.
Fixes a long-standing infelicity.
Revision Changes Path
1.34 +35 -17 fptools/ghc/compiler/typecheck/TcRnDriver.lhs
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc