HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleghc-9.10.3GHC2021

GHC.Hs.Binds

  • 9 types
  • 32 values
  • Packageghc-9.10.3
  • Exports42
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceBinds.hs
datadata AbsBinds
#

Typechecked, generalised bindings, used in the output to the type checker. See Note [AbsBinds].

Constructors

Instances1Data
  • Data AbsBindsDefined in ghc-9.10.3 · GHC.Hs.Instances · orphan
newtypenewtype IdSig
#

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

Constructors

Instances1Data
  • Data IdSigDefined in ghc-9.10.3 · GHC.Hs.Binds
datadata NamespaceSpecifier
#

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

Instances3Eq, Data, Outputable

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.

Orphan instances

9 instances