hypertypes-0.2.2: Typed ASTs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hyper.Unify.QuantifiedVar

Description

A class for types that have quantified variables.

Synopsis

Documentation

class HasQuantifiedVar (t :: HyperType) where Source #

Class for types which have quantified variables

Associated Types

type QVar t Source #

The type of quantified variable identifiers

Methods

quantifiedVar :: Prism' (t f) (QVar t) Source #

A Prism` from a type to its quantified variable term

class MonadQuantify typeConstraints q m where Source #

A monad where new quantified variables can be generated

Methods

newQuantifiedVariable :: typeConstraints -> m q Source #

class (HasQuantifiedVar t, Ord (QVar t)) => OrdQVar t Source #

A constraint synonym that represents that the quantified variable of a type has an Ord instance

Instances

Instances details
(HasQuantifiedVar t, Ord (QVar t)) => OrdQVar t Source # 
Instance details

Defined in Hyper.Unify.QuantifiedVar