Make scoped type variables work for default methods
authorsimonpj@microsoft.com <unknown>
Mon, 12 Jun 2006 11:38:55 +0000 (11:38 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 12 Jun 2006 11:38:55 +0000 (11:38 +0000)
commit1dfd77341ec56e9d61f2d78cb7ff2b9900385dac
tree446b8af401e0b1dfbcb6282087925eed5a4272a7
parent29e342d1903ba4cb4b58a66605f00920eddae7a5
Make scoped type variables work for default methods

Consider
  class C a where
    op :: forall b. a -> b -> b
    op = <rhs>

Then 'b' should be in scope in <rhs>.  I had omitted this case.
This patch fixes it.
compiler/rename/RnBinds.lhs
compiler/rename/RnSource.lhs
compiler/typecheck/TcBinds.lhs
compiler/typecheck/TcClassDcl.lhs
compiler/typecheck/TcDeriv.lhs
compiler/typecheck/TcInstDcls.lhs