cvs commit: fptools/ghc/compiler/rename Rename.lhs RnEnv.lhs
RnMonad.lhs RnNames.lhs
Simon Peyton Jones
simonpj@glass.cse.ogi.edu
Fri, 7 Dec 2001 09:33:27 -0800
simonpj 2001/12/07 09:33:27 PST
Modified files:
ghc/compiler/rename Rename.lhs RnEnv.lhs RnMonad.lhs
RnNames.lhs
Log:
----------------------------
More jiggling in the renamer
----------------------------
I was a little hasty before. (Thanks Sigbjorn for finding
this.) This commit tidies up the handling of AvailEnvs.
Principally:
* filterImports now deals completely with hiding
(before it handed off part of the job to mkGlobalRdrEnv)
* The AvailEnv in an ExportAvails does not have class ops and
data constructors in its domain. This makes plusExportAvails
more efficient, but the main thing is that it collects things
up right. (Previously, if we had
import M( C )
import M( op )
then we got an AvailEnv which had C |-> AvailTC C [C]
(no 'op').
* In Rename, we do need a "filled-out" version of the overall
AvailEnv, full_avail_env, which we construct on the spot in 'rename'.
Revision Changes Path
1.169 +23 -5 fptools/ghc/compiler/rename/Rename.lhs
1.136 +30 -20 fptools/ghc/compiler/rename/RnEnv.lhs
1.126 +0 -8 fptools/ghc/compiler/rename/RnMonad.lhs
1.127 +44 -71 fptools/ghc/compiler/rename/RnNames.lhs