[project @ 2001-11-09 16:41:15 by simonpj]
authorsimonpj <unknown>
Fri, 9 Nov 2001 16:41:15 +0000 (16:41 +0000)
committersimonpj <unknown>
Fri, 9 Nov 2001 16:41:15 +0000 (16:41 +0000)
commitb1c75ab034fa4d9a513724f82214c1abda415546
tree5b14431f64e79c980255172c657202608e3ba47b
parent41a551e3825b77b0f2cf31241f04b3364a92e9a6
[project @ 2001-11-09 16:41:15 by simonpj]
---------------------------------------
Fix an obscure overlapping-instance bug
---------------------------------------

MERGE TO STABLE BRANCH

When searching for instances, we used bale out if the type
we seek could be instantiated to match the instance (because
it might be so instantiated later, in which case we don't
want to miss the opportunity).

The bug was that we used *matching* whereas we should use
*unification*.

Comments in the file InstEnv.
ghc/compiler/types/InstEnv.lhs