Moduleghc-10.0.0.20260917GHC2024
GHC.Hs.Binds
- 14 types
- 28 values
- Packageghc-10.0.0.20260917
- Exports44
- LanguageGHC2024
- 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.
Using SourceText in case the pragma was spelled differently or used mixed case
Abstraction Bindings Export
Instances2Data, Outputable
Data ABExportDefined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanOutputable ABExportDefined in ghc-10.0.0.20260917 · 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.Instance Note [Typechecking plan for instance declarations]
abs_binds :: LHsBinds GhcTcTypechecked user bindings
abs_sig :: Bool
Constructors
Instances3Eq, Data, NoAnn
Eq ActivationAnnDefined in ghc-10.0.0.20260917 · GHC.Hs.BindsData ActivationAnnDefined in ghc-10.0.0.20260917 · GHC.Hs.BindsNoAnn ActivationAnnDefined in ghc-10.0.0.20260917 · GHC.Hs.Binds
Constructors
AnnSpecSigass_open :: EpaLocationass_close :: EpToken"#-}"
ass_dcolon :: Maybe TokDcolonass_act :: ActivationAnn
Instances2Data, NoAnn
Data AnnSpecSigDefined in ghc-10.0.0.20260917 · GHC.Hs.BindsNoAnn AnnSpecSigDefined in ghc-10.0.0.20260917 · GHC.Hs.Binds
Constructors
Instances3Eq, Data, NoAnn
Eq HsRuleBndrsAnnDefined in ghc-10.0.0.20260917 · GHC.Hs.BindsData HsRuleBndrsAnnDefined in ghc-10.0.0.20260917 · GHC.Hs.BindsNoAnn HsRuleBndrsAnnDefined in ghc-10.0.0.20260917 · GHC.Hs.Binds
Instances3HsValBindGroup
type HsValBindGroup GhcPs = ()Defined in ghc-10.0.0.20260917 · GHC.Hs.Bindstype HsValBindGroup GhcRn = (RecFlag, LHsBinds GhcRn)Defined in ghc-10.0.0.20260917 · GHC.Hs.Bindstype HsValBindGroup GhcTc = (RecFlag, LHsBinds GhcTc)Defined in ghc-10.0.0.20260917 · GHC.Hs.Binds
Constructors
HsVBG [HsValBindGroup (GhcPass p)] [LSig GhcRn]
Instances4Data, ToHie
Data (HsValBindGroups 'Parsed)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanData (HsValBindGroups 'Renamed)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanData (HsValBindGroups 'Typechecked)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanHiePass p => ToHie (RScoped (HsValBindGroups p))Defined in ghc-10.0.0.20260917 · GHC.Iface.Ext.Ast
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
Type checker Specialisation Pragma
This data type is used to communicate between the typechecker and the desugarer.
Instances2Data, Outputable
Data TcSpecPragDefined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanOutputable TcSpecPragDefined in ghc-10.0.0.20260917 · 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-10.0.0.20260917 · GHC.Hs.Instances · orphan
Constructors
XPatBindTcpatBindGRHSType :: TypeType of the GRHSs
patBindRHSTicks :: [CoreTickish]Ticks to put on the rhs
patBindVarsTicks :: [[CoreTickish]]Ticks to put on the bound variables
patBindMult :: MultMultiplicity, given by a modifier or inferred
Instances1Data
Data XPatBindTcDefined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphan
Equations
Constructors
Instances3Eq, Data, NoAnn
Eq HsRuleBndrsAnnDefined in ghc-10.0.0.20260917 · GHC.Hs.BindsData HsRuleBndrsAnnDefined in ghc-10.0.0.20260917 · GHC.Hs.BindsNoAnn HsRuleBndrsAnnDefined in ghc-10.0.0.20260917 · 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))