Refactor pruning of implication constraints
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 9 Dec 2016 17:32:07 +0000 (17:32 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 12 Dec 2016 11:56:32 +0000 (11:56 +0000)
commit818e027e2db2ac291c44a5e07ae151505f3908b8
tree9cf04b9bb08fba437ea6325a410143ee454f1a40
parentc3c702441137dc8f7ee0dd5ac313be96d625459a
Refactor pruning of implication constraints

We try to prune solved implication constraints, but it's a
bit tricky because of our desire to correctly report unused
'givens'.  This patch improves matters a bit... in tracig some
other bug I saw lots of empty constraints lying around!
compiler/typecheck/TcInstDcls.hs
compiler/typecheck/TcRnTypes.hs
compiler/typecheck/TcSMonad.hs
compiler/typecheck/TcSimplify.hs
compiler/typecheck/TcUnify.hs