Make `singleConstructor` cope with pattern synonyms
Previously, `singleConstructor` didn't handle singleton `COMPLETE` sets of a single pattern synonym, resulting in incomplete pattern warnings. This is fixed by making `singleConstructor` (now named `singleMatchConstructor`) query `allCompleteMatches`, necessarily making it effectful. As a result, most of this patch is concerned with threading the side-effect through to `singleMatchConstructor`.
parent
4626cf21
No related branches found
No related tags found
Pipeline #4403 canceled
Stage: lint
Stage: build
Stage: full-build
Stage: cleanup
Stage: packaging
Stage: hackage
Showing
- compiler/deSugar/Check.hs 93 additions, 54 deletionscompiler/deSugar/Check.hs
- testsuite/tests/pmcheck/should_compile/T15753a.hs 28 additions, 0 deletionstestsuite/tests/pmcheck/should_compile/T15753a.hs
- testsuite/tests/pmcheck/should_compile/T15753b.hs 10 additions, 0 deletionstestsuite/tests/pmcheck/should_compile/T15753b.hs
- testsuite/tests/pmcheck/should_compile/T15884.hs 7 additions, 0 deletionstestsuite/tests/pmcheck/should_compile/T15884.hs
- testsuite/tests/pmcheck/should_compile/all.T 6 additions, 0 deletionstestsuite/tests/pmcheck/should_compile/all.T
Loading
Please register or sign in to comment