[Haskell-cafe] Parameterize constraints of existentially quantified types

2012-04-21 Thread Bas van Dijk
Hi, I just found out that with the new ConstraintKinds extension we can parameterize the constraint of an existentially quantified type: {-# LANGUAGE KindSignatures, ConstraintKinds, ExistentialQuantification #-} import GHC.Exts data Some (c :: * -> Constraint) = forall a. c a => Some a This cou

Re: [Haskell-cafe] Parameterize constraints of existentially quantified types

2012-04-21 Thread Gábor Lehel
On Sat, Apr 21, 2012 at 6:05 PM, Bas van Dijk wrote: > Hi, > > I just found out that with the new ConstraintKinds extension we can > parameterize the constraint of an existentially quantified type: > > {-# LANGUAGE KindSignatures, ConstraintKinds, ExistentialQuantification #-} > import GHC.Exts >