Changes between Version 6 and Version 7 of Commentary/Compiler/RdrNameType
- Timestamp:
- 09/14/06 11:32:07 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Commentary/Compiler/RdrNameType
v6 v7 49 49 An {{{OccName}}} is more-or-less just a string, like "foo" or "Tree", giving the (unqualified) name of an entity. 50 50 Well, 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 {{{ 52 52 data OccName = OccName 53 53 { occNameSpace :: !NameSpace
