[project @ 2004-11-29 16:25:03 by simonpj]
authorsimonpj <unknown>
Mon, 29 Nov 2004 16:25:12 +0000 (16:25 +0000)
committersimonpj <unknown>
Mon, 29 Nov 2004 16:25:12 +0000 (16:25 +0000)
commitb3fe66bb78fe11ee322f7442a5676e628f678b29
treed5ddd2cd7e6ba097914d790762f126c99939998d
parentd1675fe00e1972a0acf130b0e484ac83e908ff0a
[project @ 2004-11-29 16:25:03 by simonpj]
---------------------
Simplify ImportAvails
---------------------

Every Name has, for some while, contained its "parent";
the type or class inside which it is defined.  But the rest
of the renamer wasn't using this information as much as it
could do.  In particular, the ImportAvails type was more elaborate
than necessary.

This commit combines these two fields of ImportAvails:
imp_env :: AvailEnv
imp_qual :: ModuleEnv AvailEnv
into one
imp_env :: ModuleEnv NameSet

This is quite a bit simpler.  Less redundancy and, I think, less
code.
ghc/compiler/rename/RnNames.lhs
ghc/compiler/typecheck/TcRnDriver.lhs
ghc/compiler/typecheck/TcRnMonad.lhs
ghc/compiler/typecheck/TcRnTypes.lhs