Eliminate spurious warnings in hat-trans.

malcolm: Mon Feb 4 16:58:54 CET 2002 Update of /usr/src/master/nhc/src/compiler98 In directory hinken:/tmp/cvs-serv7983 Modified Files: AuxFile.hs AuxFixity.hs AuxLabelAST.hs Log Message: Eliminate spurious warnings in hat-trans. * Previously, the IdentMap (that maps a constructor, field, or method to its type or class) was only used on entities defined in this module. This led to spurious warnings about some identifiers that were imported and re-exported. * Now, the IdentMap is always paired up with the AuxTree (mapping from Identifier to AuxInfo) to form an 'Environment', so the two are always carried together. Thus, getImports extends the IdentMap as well as the AuxTree. Also, when relabeling the abstract syntax tree, we now have correct information about the kind (Var, Con, Field, Method) of each entity, rather than a poor approximation.
participants (1)
-
malcolmīŧ sparud.net