sslang-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

IR.Constraint.Unify

Synopsis

Documentation

data Answer Source #

UNIFY

Constructors

Ok 
Err Type Type 

newtype Unify a Source #

CPS style UNIFIER

Constructors

Unify (forall r. (a -> TC r) -> (() -> TC r) -> TC r) 

data Context Source #

UNIFICATION HELPERS

merge :: Context -> Content -> Unify () Source #

MERGE

guardedUnify :: Variable -> Variable -> Unify () Source #

ACTUALLY UNIFY

unifyArgs :: Context -> [Variable] -> [Variable] -> (() -> TC r) -> (() -> TC r) -> TC r Source #