wiki:Commentary/Abbreviations

Version 18 (modified by megacz, 3 years ago) (diff)

transcribe comment from HscTypes?.hs

Certain abbreviations are used pervasively throughout the GHC source code. A few, like "Tc", are easy to figure out. Others, like "Occ", are more challenging (in case you were wondering, none of GHC's code is Occult, except perhaps in the Latin sense)

See also: A similar list on the GHC Users' wiki.

  • "Occ" means "Occurrence"
    • However, in the context of OccName, "occurrence" actually means "classified (i.e. as a type name, value name, etc) but not qualified and not yet resolved"
  • "Rn" means "Renamer"
  • "Rts" means "Run Time System"
  • "Rdr" means "Parser" (do not ask me why, I don't know)
  • "Ds" means "Desugarer"
  • "Ty" means "Type"
  • "Lcl" means "Local"
  • "Gbl" means "Global"
  • "Loc" means "Location", as in SrcLoc?
  • "Hs" means "Haskell Syntax" (generally as opposed to Core -- for example, Expr vs HsExpr?)
  • "Hsc" means "GHC" ("hsc" used to be the name of the compiler binary, when there was a separate driver and compiler)