Reader Name
Do not use the data constructors of RdrName directly: prefer the family of functions that creates them, such as mkRdrUnqual
Note: A Located RdrName will only have API Annotations if it is a compound one, e.g.
`bar`
( ~ )AnnKeywordId : AnnType, AnnOpen
'('or'['or'[:', AnnClose')'or']'or':]',, AnnBackquote'`', AnnVal AnnTilde,
Constructors
Unqual OccNameUnqualified name
Used for ordinary, unqualified occurrences, e.g.
x,yorFoo. Create such a RdrName with mkRdrUnqualQual ModuleName OccNameOrig Module OccNameOriginal name
An original name; the module is the defining module. This is used when GHC generates code that will be fed into the renamer (e.g. from deriving clauses), but where we want to say "Use Prelude.map dammit". One of these can be created with mkOrig
Exact NameExact name
We know exactly the Name. This is used:
When the parser parses built-in syntax like
[]and(,), but wants a RdrName from itBy Template Haskell, when TH has generated a unique name
Such a RdrName can be created by using getRdrName on a Name
Instances8Eq, Data, Ord, Outputable, OutputableBndr, HasOccName, …
Eq RdrNameDefined in ghc-9.10.3 · GHC.Types.Name.ReaderData RdrNameDefined in ghc-9.10.3 · GHC.Types.Name.ReaderOrd RdrNameDefined in ghc-9.10.3 · GHC.Types.Name.ReaderOutputable RdrNameDefined in ghc-9.10.3 · GHC.Types.Name.ReaderOutputableBndr RdrNameDefined in ghc-9.10.3 · GHC.Types.Name.ReaderHasOccName RdrNameDefined in ghc-9.10.3 · GHC.Types.Name.ReaderDisambInfixOp RdrNameDefined in ghc-9.10.3 · GHC.Parser.PostProcesstype Anno RdrName = SrcSpanAnnNDefined in ghc-9.10.3 · GHC.Hs.Extension · orphan