[project @ 2001-05-28 13:57:19 by simonmar]
authorsimonmar <unknown>
Mon, 28 May 2001 13:57:19 +0000 (13:57 +0000)
committersimonmar <unknown>
Mon, 28 May 2001 13:57:19 +0000 (13:57 +0000)
commit2e63bea6efcfe3020623a0eb7ad8dae42ae4468f
tree60c0ef2e9e1fb31f61effb9c6c6a21c3e852d30e
parent15cf6d3b39e000dc125073df9f4ea000f77b8423
[project @ 2001-05-28 13:57:19 by simonmar]
When we auto-load a module because the user typed a qualified name at
the prompt, we better not auto-load a home interface (because we won't
have the code to go with it).

So, introduce a new constructor in the WhereFrom datatype, namely
ImportByCmdLine for these auto-imports, and make findAndReadIface fail
if it tries to load a home interface by this route.

ToDo: GHCi should *never* demand-load a home interface under any
circumstances, but we don't have an ASSERT for this yet.
ghc/compiler/basicTypes/Module.lhs
ghc/compiler/rename/RnEnv.lhs
ghc/compiler/rename/RnHiFiles.lhs
ghc/compiler/rename/RnMonad.lhs