Fix egregious blunder in the type flattener
In tidying up the flattener I introduced an error that no regression test caught, giving rise to Trac #8978, #8979. It shows up if you have a type synonym whose RHS mentions type functions, such sas type family F a type T a = (F a, a) -- This synonym isn't properly flattened The fix is easy, but sadly the bug is in the released GHC 7.8.1 (cherry picked from commit b8132a9d)
Showing
- compiler/typecheck/TcCanonical.lhs 20 additions, 5 deletionscompiler/typecheck/TcCanonical.lhs
- testsuite/tests/indexed-types/should_compile/T8978.hs 12 additions, 0 deletionstestsuite/tests/indexed-types/should_compile/T8978.hs
- testsuite/tests/indexed-types/should_compile/T8979.hs 10 additions, 0 deletionstestsuite/tests/indexed-types/should_compile/T8979.hs
- testsuite/tests/indexed-types/should_compile/all.T 2 additions, 0 deletionstestsuite/tests/indexed-types/should_compile/all.T
- testsuite/tests/indexed-types/should_fail/T5439.stderr 26 additions, 25 deletionstestsuite/tests/indexed-types/should_fail/T5439.stderr
- testsuite/tests/indexed-types/should_fail/T5934.stderr 8 additions, 7 deletionstestsuite/tests/indexed-types/should_fail/T5934.stderr
Please register or sign in to comment