small
This commit is contained in:
@@ -108,7 +108,7 @@ addConstraint t u = _1 %= ((t, u):)
|
|||||||
|
|
||||||
-- | Unify a list of constraints, meaning that pairs between types are turned
|
-- | Unify a list of constraints, meaning that pairs between types are turned
|
||||||
-- into pairs of type variables and types. A useful thought model is to think of
|
-- into pairs of type variables and types. A useful thought model is to think of
|
||||||
-- it like solving an equation such that the unknown variable is the left-hand
|
-- it as solving an equation such that the unknown variable is the left-hand
|
||||||
-- side.
|
-- side.
|
||||||
|
|
||||||
unify :: [Constraint] -> HMError Context'
|
unify :: [Constraint] -> HMError Context'
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ data Type = TyInt
|
|||||||
| TyFun
|
| TyFun
|
||||||
| TyVar Name
|
| TyVar Name
|
||||||
| TyApp Type Type
|
| TyApp Type Type
|
||||||
|
| TyCon Name
|
||||||
deriving (Show, Read, Lift, Eq)
|
deriving (Show, Read, Lift, Eq)
|
||||||
|
|
||||||
type TyCon = Name
|
type TyCon = Name
|
||||||
|
|||||||
Reference in New Issue
Block a user