Changes between Version 6 and Version 7 of Commentary/Compiler/RdrNameType


Ignore:
Timestamp:
Sep 14, 2006 6:32:07 PM (9 years ago)
Author:
andykam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/RdrNameType

    v6 v7  
    4949An {{{OccName}}} is more-or-less just a string, like "foo" or "Tree", giving the (unqualified) name of an entity.  
    5050Well, not quite just a string, because in Haskell a name like "C" could mean a type constructor or data constructor, depending on context. So GHC defines a type OccName (defined in basicTypes/OccName.lhs) that is a pair of a {{{FastString}}} and a {{{NameSpace}}} indicating which name space the name is drawn from. The data type is defined (abstractly) in [[GhcFile(compiler/basicTypes/OccName.lhs)]]: 
    51 {{ 
     51{{{ 
    5252data OccName = OccName  
    5353    { occNameSpace  :: !NameSpace