RE: lexically-scoped type variables in GHC 6.6

2006-09-07 Thread Simon Peyton-Jones
| With reference to the documentation [about lexically scoped type variables] that just appeared in darcs: For the benefit of others, the draft 6.6 documentation is here http://www.haskell.org/ghc/dist/current/docs/users_guide/type-extensions .html#scoped-type-variables | Result type

Re: lexically-scoped type variables in GHC 6.6

2006-09-07 Thread Brian Hulley
Ross Paterson wrote: data T = forall a. MkT [a] k :: T - T k (forall a. MkT [t]) = MkT t3 where t3::[a] = [t,t,t] What was wrong with the example in the documentation? k :: T - T k (MkT [t::a]) = MkT t3 where t3::[a] = [t,t,t] The type of (t) is (a) -

Re: lexically-scoped type variables in GHC 6.6

2006-09-07 Thread Brian Hulley
Brian Hulley wrote: Ross Paterson wrote: data T = forall a. MkT [a] k :: T - T k (forall a. MkT [t]) = MkT t3 where t3::[a] = [t,t,t] What was wrong with the example in the documentation? k :: T - T k (MkT [t::a]) = MkT t3 where t3::[a] = [t,t,t] The