[commit: ghc] master: Fix constraint simplification in rules (af6ed4a)
git at git.haskell.org
git at git.haskell.org
Fri Mar 10 16:06:07 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/af6ed4a62c77e57f544243aa72bba51a1cff6808/ghc
>---------------------------------------------------------------
commit af6ed4a62c77e57f544243aa72bba51a1cff6808
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Fri Mar 10 12:09:52 2017 +0000
Fix constraint simplification in rules
Trac #13381 showed that we were losing track of a wanted constraint
when simplifying the LHS constraints for a RULE.
This patch fixes it, makes the code a bit simpler, and better
documented.
>---------------------------------------------------------------
af6ed4a62c77e57f544243aa72bba51a1cff6808
compiler/typecheck/TcRules.hs | 153 +++++++++++----------
testsuite/tests/typecheck/should_compile/T13381.hs | 22 +++
.../tests/typecheck/should_compile/T13381.stderr | 14 ++
testsuite/tests/typecheck/should_compile/all.T | 1 +
4 files changed, 114 insertions(+), 76 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc af6ed4a62c77e57f544243aa72bba51a1cff6808
More information about the ghc-commits
mailing list