Refactor inferConstraints not to use CPS
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 21 Feb 2017 14:27:30 +0000 (14:27 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 21 Feb 2017 14:27:30 +0000 (14:27 +0000)
commit95cbb55cf7dfeaae466f0512af28a92914faacb5
tree359e64d9022d2b39b3f41fe6eac7d0962bef92ba
parent713ebd7cf03876c6bedc1be9fba8f60ccc5bc8f0
Refactor inferConstraints not to use CPS

For some odd reason inferConstraints was using a CPS style,
which is entirely unnecessary.  This patch straightens it out.

No change in what it does.
compiler/typecheck/TcDeriv.hs
compiler/typecheck/TcDerivInfer.hs