[project @ 2003-06-16 15:31:13 by simonpj] ---------------------------------- 	Fix the "no interface file" bug 	----------------------------------
[project @ 2003-06-16 15:31:13 by simonpj]
----------------------------------
	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.

TomMD/ghc,fmthoma/ghc,anton-dessiatov/ghc,green-haskell/ghc,frantisekfarka/ghc-dsi,nathyong/microghc-ghc,holzensp/ghc,christiaanb/ghc,mcmaniac/ghc,da-x/ghc,gcampax/ghc,AlexanderPankiv/ghc,snoyberg/ghc,forked-upstream-packages-for-ghcjs/ghc,jstolarek/ghc,mettekou/ghc,nkaretnikov/ghc,AlexanderPankiv/ghc,tjakway/ghcjvm,christiaanb/ghc,nomeata/ghc,bitemyapp/ghc,wxwxwwxxx/ghc,gridaphobe/ghc,AlexanderPankiv/ghc,nkaretnikov/ghc,nkaretnikov/ghc,wxwxwwxxx/ghc,tibbe/ghc,lukexi/ghc,holzensp/ghc,mcschroeder/ghc,snoyberg/ghc,vikraman/ghc,da-x/ghc,nomeata/ghc,ekmett/ghc,TomMD/ghc,gridaphobe/ghc,mfine/ghc,ml9951/ghc,acowley/ghc,tjakway/ghcjvm,AlexanderPankiv/ghc,vTurbine/ghc,elieux/ghc,shlevy/ghc,christiaanb/ghc,lukexi/ghc-7.8-arm64,ekmett/ghc,ryantm/ghc,anton-dessiatov/ghc,gcampax/ghc,mfine/ghc,sgillespie/ghc,mettekou/ghc,bitemyapp/ghc,tjakway/ghcjvm,olsner/ghc,gridaphobe/ghc,holzensp/ghc,mettekou/ghc,bitemyapp/ghc,tjakway/ghcjvm,shlevy/ghc,anton-dessiatov/ghc,hferreiro/replay,ryantm/ghc,urbanslug/ghc,fmthoma/ghc,sdiehl/ghc,ml9951/ghc,ezyang/ghc,da-x/ghc,ekmett/ghc,tjakway/ghcjvm,sgillespie/ghc,ekmett/ghc,AlexanderPankiv/ghc,ghc-android/ghc,ilyasergey/GHC-XAppFix,vTurbine/ghc,elieux/ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,vikraman/ghc,GaloisInc/halvm-ghc,gcampax/ghc,green-haskell/ghc,tibbe/ghc,hferreiro/replay,oldmanmike/ghc,frantisekfarka/ghc-dsi,spacekitteh/smcghc,fmthoma/ghc,vTurbine/ghc,green-haskell/ghc,ezyang/ghc,jstolarek/ghc,acowley/ghc,gridaphobe/ghc,sdiehl/ghc,mettekou/ghc,mfine/ghc,da-x/ghc,ml9951/ghc,mettekou/ghc,nushio3/ghc,GaloisInc/halvm-ghc,spacekitteh/smcghc,oldmanmike/ghc,ezyang/ghc,urbanslug/ghc,gridaphobe/ghc,hferreiro/replay,ghc-android/ghc,elieux/ghc,wxwxwwxxx/ghc,nathyong/microghc-ghc,ml9951/ghc,elieux/ghc,nkaretnikov/ghc,forked-upstream-packages-for-ghcjs/ghc,shlevy/ghc,forked-upstream-packages-for-ghcjs/ghc,gridaphobe/ghc,spacekitteh/smcghc,fmthoma/ghc,urbanslug/ghc,ghc-android/ghc,ml9951/ghc,sdiehl/ghc,mcschroeder/ghc,green-haskell/ghc,sgillespie/ghc,ghc-android/ghc,mcschroeder/ghc,gcampax/ghc,nathyong/microghc-ghc,nomeata/ghc,sgillespie/ghc,nathyong/microghc-ghc,ekmett/ghc,ezyang/ghc,siddhanathan/ghc,nomeata/ghc,vikraman/ghc,forked-upstream-packages-for-ghcjs/ghc,gridaphobe/ghc,ghc-android/ghc,shlevy/ghc,nathyong/microghc-ghc,sdiehl/ghc,anton-dessiatov/ghc,da-x/ghc,GaloisInc/halvm-ghc,holzensp/ghc,nushio3/ghc,ilyasergey/GHC-XAppFix,nushio3/ghc,vTurbine/ghc,oldmanmike/ghc,frantisekfarka/ghc-dsi,ml9951/ghc,gcampax/ghc,ml9951/ghc,oldmanmike/ghc,ghc-android/ghc,elieux/ghc,ilyasergey/GHC-XAppFix,olsner/ghc,vTurbine/ghc,gcampax/ghc,jstolarek/ghc,wxwxwwxxx/ghc,spacekitteh/smcghc,fmthoma/ghc,hferreiro/replay,TomMD/ghc,mcschroeder/ghc,snoyberg/ghc,lukexi/ghc,mettekou/ghc,siddhanathan/ghc,wxwxwwxxx/ghc,sdiehl/ghc,olsner/ghc,oldmanmike/ghc,nathyong/microghc-ghc,nushio3/ghc,mfine/ghc,urbanslug/ghc,ryantm/ghc,lukexi/ghc,oldmanmike/ghc,anton-dessiatov/ghc,AlexanderPankiv/ghc,urbanslug/ghc,mcmaniac/ghc,christiaanb/ghc,da-x/ghc,acowley/ghc,sdiehl/ghc,mettekou/ghc,TomMD/ghc,tibbe/ghc,forked-upstream-packages-for-ghcjs/ghc,nushio3/ghc,nkaretnikov/ghc,holzensp/ghc,olsner/ghc,siddhanathan/ghc,forked-upstream-packages-for-ghcjs/ghc,vikraman/ghc,nushio3/ghc,oldmanmike/ghc,ezyang/ghc,sgillespie/ghc,lukexi/ghc-7.8-arm64,fmthoma/ghc,tibbe/ghc,TomMD/ghc,vikraman/ghc,acowley/ghc,TomMD/ghc,ezyang/ghc,wxwxwwxxx/ghc,ryantm/ghc,hferreiro/replay,hferreiro/replay,da-x/ghc,mcschroeder/ghc,GaloisInc/halvm-ghc,olsner/ghc,mfine/ghc,vTurbine/ghc,mfine/ghc,shlevy/ghc,nkaretnikov/ghc,urbanslug/ghc,acowley/ghc,snoyberg/ghc,vTurbine/ghc,frantisekfarka/ghc-dsi,ilyasergey/GHC-XAppFix,lukexi/ghc-7.8-arm64,lukexi/ghc-7.8-arm64,mcschroeder/ghc,GaloisInc/halvm-ghc,tibbe/ghc,acowley/ghc,ghc-android/ghc,fmthoma/ghc,snoyberg/ghc,ml9951/ghc,mfine/ghc,AlexanderPankiv/ghc,jstolarek/ghc,acowley/ghc,sdiehl/ghc,elieux/ghc,elieux/ghc,green-haskell/ghc,snoyberg/ghc,mcmaniac/ghc,nushio3/ghc,nomeata/ghc,lukexi/ghc,anton-dessiatov/ghc,vikraman/ghc,anton-dessiatov/ghc,sgillespie/ghc,ezyang/ghc,christiaanb/ghc,siddhanathan/ghc,tjakway/ghcjvm,mcschroeder/ghc,mcmaniac/ghc,snoyberg/ghc,frantisekfarka/ghc-dsi,lukexi/ghc-7.8-arm64,vikraman/ghc,urbanslug/ghc,bitemyapp/ghc,olsner/ghc,shlevy/ghc,jstolarek/ghc,gcampax/ghc,shlevy/ghc,bitemyapp/ghc,siddhanathan/ghc,mcmaniac/ghc,spacekitteh/smcghc,hferreiro/replay,olsner/ghc,ryantm/ghc,TomMD/ghc,sgillespie/ghc,nkaretnikov/ghc,nathyong/microghc-ghc,wxwxwwxxx/ghc,forked-upstream-packages-for-ghcjs/ghc,siddhanathan/ghc,christiaanb/ghc,lukexi/ghc,christiaanb/ghc,tjakway/ghcjvm,siddhanathan/ghc