syntax-tree-0.1.0.1: Typed ASTs

Safe HaskellSafe
LanguageHaskell2010

AST.Unify.QuantifiedVar

Description

A class for types that have quantified variables.

Synopsis

Documentation

class HasQuantifiedVar (t :: Knot -> Type) where Source #

Class for types which have quantified variables

Associated Types

type QVar t :: Type 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
(HasQuantifiedVar t, Ord (QVar t)) => OrdQVar t Source # 
Instance details

Defined in AST.Unify.QuantifiedVar