Fix explicitly-bidirectional pattern synonyms
This partly fixes Trac #13441, at least for the explicitly bidirectional case. See Note [Checking against a pattern signature], the part about "Existential type variables". Alas, the implicitly-bidirectional case is still not quite right, but at least there is a workaround by making it explicitly bidirectional. (cherry picked from commit 7c7479d0)
Showing
- compiler/typecheck/TcPatSyn.hs 21 additions, 11 deletionscompiler/typecheck/TcPatSyn.hs
- testsuite/tests/patsyn/should_compile/T13441.hs 29 additions, 0 deletionstestsuite/tests/patsyn/should_compile/T13441.hs
- testsuite/tests/patsyn/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/patsyn/should_compile/all.T
Loading
Please register or sign in to comment