HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleconstraints-0.14.2Haskell2010

Data.Constraint.Forall

This module uses a trick to provide quantification over constraints.

  • 1 type
  • 4 classes
  • 5 values
classclass (forall (a :: k). p a) => Forall (p :: k -> Constraint)
#
Instances1Forall
  • (forall (a :: k). p a) => Forall pDefined in constraints-0.14.2 · Data.Constraint.Forall
classclass Forall (ComposeC p f) => ForallF (p :: k2 -> Constraint) (f :: k1 -> k2)
#

A representation of the quantified constraint forall a. p (f a).

Instances1ForallF
  • Forall (ComposeC p f) => ForallF p fDefined in constraints-0.14.2 · Data.Constraint.Forall
valueinst1 :: Forall p :- p f
#

Instantiate a quantified constraint on kind * -> *. This is now redundant since inst became polykinded.

classclass Forall (Q p t) => ForallT (p :: k4 -> Constraint) (t :: (k1 -> k2) -> k3 -> k4)
#

A representation of the quantified constraint forall f a. p (t f a).

Instances1ForallT
  • Forall (Q p t) => ForallT p tDefined in constraints-0.14.2 · Data.Constraint.Forall
familytype family ForallV :: k -> Constraint
#

A representation of the quantified constraint forall a1 a2 ... an . p a1 a2 ... an, supporting a variable number of parameters.

Instances1ForallV
  • type ForallV = ForallV_Defined in constraints-0.14.2 · Data.Constraint.Forall
classclass InstV (p :: k) (c :: Constraint) | k c -> p where
#

Instantiate a quantified ForallV p constraint as c, where c ~ p a1 a2 ... an.

Methods

Instances3InstV
  • p ~ c => InstV p cDefined in constraints-0.14.2 · Data.Constraint.Forall
  • InstV (p a) c => InstV p cDefined in constraints-0.14.2 · Data.Constraint.Forall
  • p a ~ c => InstV p cDefined in constraints-0.14.2 · Data.Constraint.Forall