diff options
| author | simonpj@microsoft.com <unknown> | 2009-05-28 16:42:50 +0000 |
|---|---|---|
| committer | simonpj@microsoft.com <unknown> | 2009-05-28 16:42:50 +0000 |
| commit | d3c3b434feed852a56b5da706a5310f20b3b2377 (patch) | |
| tree | 66fb546970970451e8c054c5908668e68d587394 /compiler | |
| parent | b62923382881b6a6b5cdbe65f8db1f75fa8c495c (diff) | |
| download | haskell-d3c3b434feed852a56b5da706a5310f20b3b2377.tar.gz | |
Comments about naming for data constructors
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/basicTypes/DataCon.lhs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/basicTypes/DataCon.lhs b/compiler/basicTypes/DataCon.lhs index cca021ca9b..0558daeff2 100644 --- a/compiler/basicTypes/DataCon.lhs +++ b/compiler/basicTypes/DataCon.lhs @@ -98,12 +98,12 @@ Note [Data Constructor Naming] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Each data constructor C has two, and possibly up to four, Names associated with it: - OccName Name space Name of - --------------------------------------------------------------------------- - * The "data con itself" C DataName DataCon - * The "worker data con" C VarName Id (the worker) - * The "wrapper data con" \$WC VarName Id (the wrapper) - * The "newtype coercion" :CoT TcClsName TyCon + OccName Name space Name of Notes + --------------------------------------------------------------------------- + The "data con itself" C DataName DataCon In dom( GlobalRdrEnv ) + The "worker data con" C VarName Id The worker + The "wrapper data con" $WC VarName Id The wrapper + The "newtype coercion" :CoT TcClsName TyCon EVERY data constructor (incl for newtypes) has the former two (the data con itself, and its worker. But only some data constructors have a |
