Changes between Version 9 and Version 10 of Commentary/Compiler/EntityTypes


Ignore:
Timestamp:
Apr 23, 2007 9:22:40 AM (7 years ago)
Author:
guest
Comment:

fixed typos

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/EntityTypes

    v9 v10  
    66 
    77For each kind of Haskell entity (identifier, type variable, type constructor, data constructor, class) GHC has a data type to represent it.  Here they are: 
    8  * '''Type constructors''' are represtented by the {{{TyCon}}} type ([[GhcFile(compiler/types/TyCon.lhs)]]). 
    9  * '''Classes''' are represtented by the {{{Class}}} type ([[GhcFile(compiler/types/Class.lhs)]]). 
    10  * '''Data constructors''' are represtented by the {{{DataCon}}} type ([[GhcFile(compiler/basicTypes/DataCon.lhs)]]). 
     8 * '''Type constructors''' are represented by the {{{TyCon}}} type ([[GhcFile(compiler/types/TyCon.lhs)]]). 
     9 * '''Classes''' are represented by the {{{Class}}} type ([[GhcFile(compiler/types/Class.lhs)]]). 
     10 * '''Data constructors''' are represented by the {{{DataCon}}} type ([[GhcFile(compiler/basicTypes/DataCon.lhs)]]). 
    1111 * '''Term variables''' {{{Id}}} and '''type variables''' {{{TyVar}}} are both represented by the {{{Var}}} type ([[GhcFile(compiler/basicTypes/Var.lhs)]]). 
    1212All of these entities have a {{{Name}}}, but that's about all they have in common.  However they are sometimes treated uniformly: