Make comparison on equalities work right (ie look at the types)
authorsimonpj@microsoft.com <unknown>
Mon, 11 Aug 2008 10:40:11 +0000 (10:40 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 11 Aug 2008 10:40:11 +0000 (10:40 +0000)
commit7539ed8cade66d09fae1e0ccc66c519cafa3b55b
tree319fb4c05ec634da513d5ad6dbec8cb9ec941a66
parent55d32c4ca056b509b63a35b0661724e8a2529aee
Make comparison on equalities work right (ie look at the types)

This patch makes
(s1~t1) == (s2~t2) iff s1==s2, t1==t2

The comparison and equality instances for Insts are really only
used in making the AvailEnv in TcSimplify, which equalities are
never put into, which is why we've gotten away with this for so long.

But I'm now using 'nub' in the error messages for equalities,
and in any case it makes sense to have the right equality!
compiler/typecheck/TcRnTypes.lhs