In doTopReactDict, try lookup even if fundeps work
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 3 May 2013 06:42:57 +0000 (07:42 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 3 May 2013 06:44:03 +0000 (07:44 +0100)
commitd31dd88d4eae4e199d1341da2e7a7550a5e4c3a2
tree56c75df7e030d4beec2c24c5ba79b04963d09dde
parent7a7530a9d4f7cb630ab8d69dd12324e1bf61faed
In doTopReactDict, try lookup even if fundeps work

Previously we looked for fundeps, and if any fired we
didn't try to solve the constraint.  But that's wrong
(see Note [Weird fundeps]).  Now I solve first and only
if that fails try fundeps.  Code is neater too.

Fixes Trac #7875
compiler/typecheck/TcInteract.lhs