Minimise provided dictionaries in pattern synonyms
Trac #14394 showed that it's possible to get redundant constraints in the inferred provided constraints of a pattern synonym. This patch removes the redundancy with mkMinimalBySCs. To do this I had to generalise the type of mkMinimalBySCs slightly. And, to reduce confusing reversal, I made it stable: it now returns its result in the same order as its input. That led to a raft of error message wibbles, mostly for the better.
Showing
- compiler/typecheck/TcDerivInfer.hs 1 addition, 1 deletioncompiler/typecheck/TcDerivInfer.hs
- compiler/typecheck/TcErrors.hs 1 addition, 4 deletionscompiler/typecheck/TcErrors.hs
- compiler/typecheck/TcPatSyn.hs 51 additions, 5 deletionscompiler/typecheck/TcPatSyn.hs
- compiler/typecheck/TcSimplify.hs 1 addition, 1 deletioncompiler/typecheck/TcSimplify.hs
- compiler/typecheck/TcType.hs 35 additions, 17 deletionscompiler/typecheck/TcType.hs
- testsuite/tests/ado/ado004.stderr 9 additions, 9 deletionstestsuite/tests/ado/ado004.stderr
- testsuite/tests/deriving/should_fail/drvfail004.stderr 1 addition, 1 deletiontestsuite/tests/deriving/should_fail/drvfail004.stderr
- testsuite/tests/determinism/determ021/determ021.stdout 2 additions, 2 deletionstestsuite/tests/determinism/determ021/determ021.stdout
- testsuite/tests/ghci/scripts/T10963.stdout 1 addition, 1 deletiontestsuite/tests/ghci/scripts/T10963.stdout
- testsuite/tests/ghci/scripts/T11524a.stdout 8 additions, 8 deletionstestsuite/tests/ghci/scripts/T11524a.stdout
- testsuite/tests/ghci/scripts/T11975.stdout 1 addition, 1 deletiontestsuite/tests/ghci/scripts/T11975.stdout
- testsuite/tests/ghci/scripts/T12550.stdout 3 additions, 3 deletionstestsuite/tests/ghci/scripts/T12550.stdout
- testsuite/tests/indexed-types/should_compile/T3017.stderr 1 addition, 1 deletiontestsuite/tests/indexed-types/should_compile/T3017.stderr
- testsuite/tests/indexed-types/should_compile/T8889.stderr 1 addition, 1 deletiontestsuite/tests/indexed-types/should_compile/T8889.stderr
- testsuite/tests/indexed-types/should_fail/T1897b.stderr 1 addition, 1 deletiontestsuite/tests/indexed-types/should_fail/T1897b.stderr
- testsuite/tests/partial-sigs/should_compile/ExtraConstraints1.stderr 1 addition, 1 deletion...ests/partial-sigs/should_compile/ExtraConstraints1.stderr
- testsuite/tests/partial-sigs/should_compile/ExtraConstraints3.stderr 19 additions, 19 deletions...ests/partial-sigs/should_compile/ExtraConstraints3.stderr
- testsuite/tests/partial-sigs/should_compile/T12844.stderr 3 additions, 3 deletionstestsuite/tests/partial-sigs/should_compile/T12844.stderr
- testsuite/tests/partial-sigs/should_compile/T13482.stderr 4 additions, 4 deletionstestsuite/tests/partial-sigs/should_compile/T13482.stderr
- testsuite/tests/partial-sigs/should_compile/T14217.stderr 23 additions, 23 deletionstestsuite/tests/partial-sigs/should_compile/T14217.stderr
Loading
Please register or sign in to comment