[project @ 2001-01-18 16:30:00 by simonmar]
authorsimonmar <unknown>
Thu, 18 Jan 2001 16:30:01 +0000 (16:30 +0000)
committersimonmar <unknown>
Thu, 18 Jan 2001 16:30:01 +0000 (16:30 +0000)
commit183bd26608df2c8ae25ac2754bcda45e51fdd615
treec16d82423e210d0c71b2ec4abfcf8cab264a182c
parent54ecd8a2a34fc51211037cf9292f70f4b1f96f76
[project @ 2001-01-18 16:30:00 by simonmar]
Problem 1
=========

The typechecker, when deciding whether to extend the Package
environment with any new typechecked declarations in its hand, was
inserting new declarations into the environment only if the
declaration's module differed from the "current" module.  This doesn't
work if the "current" module is a package module, as it could be at
the GHCi command line, for example.

The solution is to filter the declarations only if the current module
is not a package module.

Problem 2
=========

The "current" module, as obtained from the compilation manager, was
always bogusly a Home module (it used mkHomeModule).  To properly fix
this, the GHCi state has to carry around Modules instead of
ModuleNames, and CompMan.cmLoadModule needs to return a list of
Modules.
ghc/compiler/compMan/CompManager.lhs
ghc/compiler/ghci/InteractiveUI.hs
ghc/compiler/typecheck/TcModule.lhs