Skip to content

Commit

Permalink
Merge pull request #25 from treeowl/addkindsigs
Browse files Browse the repository at this point in the history
Recover kind polymorphism
  • Loading branch information
ekmett committed Mar 15, 2016
2 parents d440f1d + bd5a06f commit 8659960
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Data/Constraint/Forall.hs
Expand Up @@ -129,13 +129,13 @@ instF = Sub $
Sub Dict -> Dict

-- Classes building up to ForallT
class p (t a b) => R p t a b
class p (t a b) => R (p :: k3 -> Constraint) (t :: k1 -> k2 -> k3) (a :: k1) (b :: k2)
instance p (t a b) => R p t a b
class Forall (R p t a) => Q p t a
class Forall (R p t a) => Q (p :: k3 -> Constraint) (t :: k1 -> k2 -> k3) (a :: k1)
instance Forall (R p t a) => Q p t a

-- | A representation of the quantified constraint @forall f a. p (t f a)@.
class Forall (Q p t) => ForallT p t
class Forall (Q p t) => ForallT (p :: k3 -> Constraint) (t :: k1 -> k2 -> k3)
instance Forall (Q p t) => ForallT p t

-- | Instantiate a quantified @'ForallT' p t@ constraint at types @f@ and @a@.
Expand Down

0 comments on commit 8659960

Please sign in to comment.