Fix DoCon: Another try at getting extractResults right
authorsimonpj@microsoft.com <unknown>
Fri, 12 Oct 2007 16:23:25 +0000 (16:23 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 12 Oct 2007 16:23:25 +0000 (16:23 +0000)
commitd3e977c632ebb2e490f2bf46e59cb9b8c38d98dc
tree2bc39ba04f5544731c1fe443cfde28f15b365f95
parent13359d474c482d4641cc0f54d81cb0423fd6ab75
Fix DoCon: Another try at getting extractResults right

For some reason TcSimplify.extractResults is quite difficult to get right.
This is another attempt; finally I think I have it.

Strangely enough, it's only Sergey's DoCon program that shows up the
bug, which manifested as a failure in the Simplifier

        lookupRecBndr $dGCDRing{v a1Lz} [lid]

But it was due to extractResults producing multiple bindings for
the same dictionary.

Please merge this to the stable branch (after previous patches to
TcSimplify though).
compiler/typecheck/TcSimplify.lhs