Improve treatment of sectioned holes
Previously, GHC was pretty-printing left-section holes incorrectly and not parsing right-sectioned holes at all. This patch fixes both problems. Test Plan: make test TEST=T14590 Reviewers: bgamari, simonpj Reviewed By: simonpj Subscribers: simonpj, rwbarton, thomie, mpickering, carter GHC Trac Issues: #14590 Differential Revision: https://phabricator.haskell.org/D4273 (cherry picked from commit 4d41e921)
Showing
- compiler/hsSyn/HsExpr.hs 4 additions, 0 deletionscompiler/hsSyn/HsExpr.hs
- compiler/parser/Parser.y 7 additions, 3 deletionscompiler/parser/Parser.y
- testsuite/tests/typecheck/should_compile/T14590.hs 7 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T14590.hs
- testsuite/tests/typecheck/should_compile/T14590.stderr 264 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T14590.stderr
- testsuite/tests/typecheck/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_compile/all.T
Loading
Please register or sign in to comment