Further improvements to floating equalities
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 18 Jul 2014 08:35:24 +0000 (09:35 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 18 Jul 2014 14:33:52 +0000 (15:33 +0100)
commit4b3df0bb705c9287046c07bbc6c038960fbf8d53
tree422d51f4e75aacc01cb6b6b050ca5d019c81a055
parent3214ec5abda4e5261770c3a996335e290bbb2a91
Further improvements to floating equalities

This equality-floating stuff is horribly delicate!  Trac #9316 showed
up yet another corner case.

The main changes are
 * include CTyVarEqs when "growing" the skolem set
 * do not include the kind argument to (~) when growing the skolem set

I added a lot more comments as well
compiler/typecheck/TcSimplify.lhs
testsuite/tests/indexed-types/should_compile/T9316.hs [new file with mode: 0644]
testsuite/tests/indexed-types/should_compile/all.T