A string identifier which may be qualified to a particular module.
RdrNameStr wraps an OccNameStr and thus keeps track of whether it is a
"constructor" or "variable" (e.g.: "Foo.Bar" vs "Foo.bar",
respectively).
RdrNameStr is simililar in purpose to GHC's RdrName. However, unlike RdrName, RdrNameStr does not differentiate between the namespace of types and of values. Functions in this package that take a RdrNameStr as input will internally convert it to the proper namespace. (This approach makes it easier to implement an IsString instance without the context where a name would be used.)
For example:
fromString "A.B.c" == QualStr (fromString "A.B") (fromString "c")
fromString "c" == UnqualStr (fromString "c")Constructors
Instances4Eq, Ord, Show, IsString
Eq RdrNameStrDefined in ghc-source-gen-0.4.6.0 · GHC.SourceGen.Name.InternalOrd RdrNameStrDefined in ghc-source-gen-0.4.6.0 · GHC.SourceGen.Name.InternalShow RdrNameStrDefined in ghc-source-gen-0.4.6.0 · GHC.SourceGen.Name.InternalIsString RdrNameStrDefined in ghc-source-gen-0.4.6.0 · GHC.SourceGen.Name.Internal