Is this valid (extended) Haskell?
--
class MyClass a b where
foo :: a -> b -> Int
data Special = forall b. (MyClass Int b)=> MkSpecial b
data General a = forall b. (MyClass a b)=> MkGeneral b
--
Hugs complains about the 'General' line but has no problem with the
'Special' line...
--
Ashley Yakeley, Seattle WA
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell
- Re: Parameterising Class Constraints in Existential Typ... Ashley Yakeley
- Re: Parameterising Class Constraints in Existentia... Johan Nordlander
- RE: Parameterising Class Constraints in Existentia... Simon Peyton-Jones
