
21 Apr
2012
21 Apr
'12
12:05 p.m.
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 could be used to define SomeException for example: import Control.Exception (Exception) type SomeException = Some Exception Are there any other use cases? Bas