Changes between Version 6 and Version 7 of GhcKinds/KindPolymorphism
- Timestamp:
- 08/31/11 06:28:11 (21 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GhcKinds/KindPolymorphism
v6 v7 66 66 {{{ 67 67 class C1 (f :: k1 -> *) (g :: k2 -> k1) where -- forall k1 k2. (k1 -> *) -> (k2 -> k1) -> Constraint 68 foo :: f (g a) -> f b -- forall (a :: k2) (b :: k1). f (g a) -> f b 68 foo :: f (g a) -> (f :: k1 -> *) b -- forall (a :: k2) (b :: k1). f (g a) -> f b 69 -- Note that k1 and k2 scope over the type signatures 70 -- just as f and g do. 69 71 70 72 -- C2 looks much easier with defaulting
