Check if namespace is covered by a namespace specifier: * NoNamespaceSpecifier covers both namespaces * TypeNamespaceSpecifier covers the type namespace only * DataNamespaceSpecifier covers the data namespace only
Moduleghc-lib-parser-9.14.1.20251220GHC2021
GHC.Hs.Binds
- 14 types
- 31 values
- Packageghc-lib-parser-9.14.1.20251220
- Exports46
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceBinds.hs
Extracts the name for a SPECIALIZE instance pragma. In hsSigDoc, the src field of SpecInstSig signature contains the SourceText for a SPECIALIZE instance pragma of the form: "SourceText {-# SPECIALIZE"
Extraction ensures that all variants of the pragma name (with a Z or an
S) are output exactly as used in the pragma.
Check if namespace specifiers overlap, i.e. if they are equal or if at least one of them doesn't specify a namespace
Using SourceText in case the pragma was spelled differently or used mixed case
Abstraction Bindings Export
Instances2Data, Outputable
Data ABExportDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Instances · orphanOutputable ABExportDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Binds
Typechecked, generalised bindings, used in the output to the type checker. See Note [AbsBinds].
Constructors
AbsBindsabs_tvs :: [TyVar]abs_ev_vars :: [EvVar]Includes equality constraints
abs_exports :: [ABExport]AbsBinds only gets used when idL = idR after renaming, but these need to be idL's for the collect... code in HsUtil to have the right type
abs_ev_binds :: [TcEvBinds]Evidence bindings Why a list? See
GHC.Tc.TyCl.InstanceNote [Typechecking plan for instance declarations]abs_binds :: LHsBinds GhcTcTypechecked user bindings
abs_sig :: Bool
Instances3Eq, Data, NoAnn
Eq ActivationAnnDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.BindsData ActivationAnnDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.BindsNoAnn ActivationAnnDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Binds
Constructors
AnnSpecSigass_open :: EpaLocationass_close :: EpToken"#-}"
ass_dcolon :: Maybe TokDcolonass_act :: ActivationAnn
Instances2Data, NoAnn
Data AnnSpecSigDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.BindsNoAnn AnnSpecSigDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Binds
Constructors
Instances3Eq, Data, NoAnn
Eq HsRuleBndrsAnnDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.BindsData HsRuleBndrsAnnDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.BindsNoAnn HsRuleBndrsAnnDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Binds
A type signature in generated code, notably the code generated for record selectors. We simply record the desired Id itself, replete with its name, type and IdDetails. Otherwise it's just like a type signature: there should be an accompanying binding
Located Type checker Specialisation Pragmas
Instances3Data
Data (NHsValBindsLR GhcPs)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Instances · orphanData (NHsValBindsLR GhcRn)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Instances · orphanData (NHsValBindsLR GhcTc)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Instances · orphan
Optional namespace specifier for fixity signatures, WARNINIG and DEPRECATED pragmas.
Examples:
{-# WARNING in "x-partial" data Head "don't use this pattern synonym" #-} -- ↑ DataNamespaceSpecifier
{-# DEPRECATED type D "This type was deprecated" #-} -- ↑ TypeNamespaceSpecifier
infixr 6 data $ -- ↑ DataNamespaceSpecifier
Constructors
NoNamespaceSpecifierTypeNamespaceSpecifier (EpToken"type"
)DataNamespaceSpecifier (EpToken"data"
)
Instances3Eq, Data, Outputable
Eq NamespaceSpecifierDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.BindsData NamespaceSpecifierDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.BindsOutputable NamespaceSpecifierDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Binds
Type checker Specialisation Pragma
This data type is used to communicate between the typechecker and the desugarer.
Constructors
Instances2Data, Outputable
Data TcSpecPragDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Instances · orphanOutputable TcSpecPragDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Binds
Type checker Specialisation Pragmas
TcSpecPrags conveys SPECIALISE pragmas from the type checker
to the desugarer
Constructors
IsDefaultMethodSuper-specialised: a default method should be macro-expanded at every call site
SpecPrags [LTcSpecPrag]
Instances1Data
Data TcSpecPragsDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Instances · orphan
Equations
Constructors
Instances3Eq, Data, NoAnn
Eq HsRuleBndrsAnnDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.BindsData HsRuleBndrsAnnDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.BindsNoAnn HsRuleBndrsAnnDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Binds
Orphan instances
11 instancesOutputableBndrId p => Outputable (FixitySig (GhcPass p))OutputableBndrId p => Outputable (HsIPBinds (GhcPass p))OutputableBndrId p => Outputable (IPBind (GhcPass p))OutputableBndrId p => Outputable (RuleBndr (GhcPass p))OutputableBndrId p => Outputable (RuleBndrs (GhcPass p))OutputableBndrId p => Outputable (Sig (GhcPass p))Outputable (XRecGhc (IdGhcP p)) => Outputable (RecordPatSynField (GhcPass p))(OutputableBndrId l, OutputableBndrId r) => Outputable (PatSynBind (GhcPass l) (GhcPass r))(OutputableBndrId pl, OutputableBndrId pr) => Outputable (HsBindLR (GhcPass pl) (GhcPass pr))(OutputableBndrId pl, OutputableBndrId pr) => Outputable (HsLocalBindsLR (GhcPass pl) (GhcPass pr))(OutputableBndrId pl, OutputableBndrId pr) => Outputable (HsValBindsLR (GhcPass pl) (GhcPass pr))