ApplicativeDo: handle BodyStmt (#12143)
Summary: It's simple to treat BodyStmt just like a BindStmt with a wildcard pattern, which is enough to fix #12143 without going all the way to using `<*` and `*>` (#10892). Test Plan: * new test cases in `ado004.hs` * validate Reviewers: niteria, simonpj, bgamari, austin, erikd Subscribers: rwbarton, thomie GHC Trac Issues: #12143 Differential Revision: https://phabricator.haskell.org/D4128
Showing
- compiler/deSugar/Coverage.hs 5 additions, 2 deletionscompiler/deSugar/Coverage.hs
- compiler/deSugar/DsExpr.hs 1 addition, 1 deletioncompiler/deSugar/DsExpr.hs
- compiler/hsSyn/HsExpr.hs 49 additions, 8 deletionscompiler/hsSyn/HsExpr.hs
- compiler/hsSyn/HsUtils.hs 1 addition, 1 deletioncompiler/hsSyn/HsUtils.hs
- compiler/rename/RnExpr.hs 9 additions, 2 deletionscompiler/rename/RnExpr.hs
- compiler/typecheck/TcHsSyn.hs 5 additions, 5 deletionscompiler/typecheck/TcHsSyn.hs
- compiler/typecheck/TcMatches.hs 3 additions, 3 deletionscompiler/typecheck/TcMatches.hs
- testsuite/tests/ado/ado004.hs 18 additions, 0 deletionstestsuite/tests/ado/ado004.hs
- testsuite/tests/ado/ado004.stderr 8 additions, 0 deletionstestsuite/tests/ado/ado004.stderr
Loading
Please register or sign in to comment