HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Moduleth-abstraction-0.7.2.0Haskell2010

Language.Haskell.TH.Datatype.TyVarBndr

This module provides a backwards-compatible API for constructing and manipulating TyVarBndrs across multiple versions of the template-haskell package.

Contents
  1. TyVarBndr-related types
  2. Constructing TyVarBndrs
  3. flag-polymorphic
  4. TyVarBndrUnit
  5. TyVarBndrSpec
  6. TyVarBndrVis
  7. Constructing Specificity
  8. Constructing BndrVis
  9. Modifying TyVarBndrs
  10. Properties of TyVarBndrs
Synopsis

TyVarBndr-related types

typetype TyVarBndr_ flag = TyVarBndr flag

A type synonym for TyVarBndr. This is the recommended way to refer to TyVarBndrs if you wish to achieve backwards compatibility with older versions of template-haskell, where TyVarBndr lacked a flag type parameter (if it has one).

datadata Specificity

The specificity of a type variable in a forall ....

Instances9Eq, Data, Ord, Show, Generic, PprFlag, …
datadata BndrVis

Visibility of a type variable. See Inferred vs. specified type variables.

Constructors

Instances9Eq, Data, Ord, Show, Generic, PprFlag, …

Constructing TyVarBndrs

flag-polymorphic

TyVarBndrUnit

TyVarBndrSpec

TyVarBndrVis

Constructing Specificity

Constructing BndrVis

Modifying TyVarBndrs

valueelimTVFlag
  1. :: Name -> flag -> r
  2. -> Name -> flag -> Kind -> r
  3. -> TyVarBndr_ flag
  4. -> r

Case analysis for a TyVarBndr that includes flags in the continuation arguments. Note that TyVarBndrs did not include flags prior to template-haskell-2.17.0.0, so on older versions of template-haskell, these flags instead become ().

Properties of TyVarBndrs

valuetvFlag :: TyVarBndr_ flag -> flag

Extract the flag from a TyVarBndr. Note that TyVarBndrs did not include flags prior to template-haskell-2.17.0.0, so on older versions of template-haskell, this functions instead returns ().