[project @ 2002-02-13 14:14:09 by simonpj]
authorsimonpj <unknown>
Wed, 13 Feb 2002 14:14:09 +0000 (14:14 +0000)
committersimonpj <unknown>
Wed, 13 Feb 2002 14:14:09 +0000 (14:14 +0000)
commit726258fc048c7272e027bd436aaf37de50c42c77
tree7dc13cb8ac9c2806c421d1430fea990b31ac6f81
parentaf93bb787305c0401eb658f149021e22d1ab98cc
[project @ 2002-02-13 14:14:09 by simonpj]
------------------------------
Fix the "occurs check" so that
it handles unifying a type variable
with a type scheme
------------------------------

It's illegal to unify a type variable with a type scheme:

a  :=:  (forall b. b->b) -> Int

But I wasn't detecting that properly.  Now, the same code
that does the occurs check also looks for foralls.
ghc/compiler/typecheck/TcUnify.lhs