Do not discard insoluble constraints in simplifyInfer
authorSimon Peyton Jones <simonpj@microsoft.com>
Sat, 14 Jul 2012 12:18:34 +0000 (13:18 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Sat, 14 Jul 2012 12:18:34 +0000 (13:18 +0100)
commitc1f01e351759e7c25818b05e32bdb7b702dac6f2
tree3f346c82053a96121a3e5822083512bfd645be89
parent777cda76784241545023a66fcfcf54c0e6ff1d4f
Do not discard insoluble constraints in simplifyInfer

Before -fdefer-type-errors there we no insolubles
(because we'd have failed before then), but with -fdefer-type-errors
there can be.  The code is acutally a bit simpler: we just call
emitConstraints, and eliminate the bogus-looking emitWC from TcRnMonad.

There's a bit more tidying up to do, concerning the places we use
keepWanted, but I need to talk to Dimitrios about that.

Meanwhile this fixes Trac #7023
compiler/typecheck/TcRnMonad.lhs
compiler/typecheck/TcSimplify.lhs