[project @ 2005-09-05 15:28:07 by simonpj]
authorsimonpj <unknown>
Mon, 5 Sep 2005 15:28:07 +0000 (15:28 +0000)
committersimonpj <unknown>
Mon, 5 Sep 2005 15:28:07 +0000 (15:28 +0000)
commit6ac7eb25f8040d81d96624757fb48df4b536a276
tree891ab1ce84a401796803ee878b09d0568ff05677
parent478f7aa502f4c8a57deb920658c152730d8c83d3
[project @ 2005-09-05 15:28:07 by simonpj]
GHC claims to lift the H98 restriction that a class method must not
add a constraint on the class type variable (manual 7.4.2.1 "Class
method types").  But the validity check was incorrect in the case
where the class method had a forall.  E.g.
class C a where
  op :: forall b. (Show b, Show a) => ...

This commit fixes the bug.

tcrun037, and tcfail149, test with and without -fglasgow-exts.

MERGE TO STABLE
ghc/compiler/typecheck/TcTyClsDecls.lhs