Deal with unbreakable blocks in Applicative Do
authorDavid Feuer <david.feuer@gmail.com>
Fri, 8 Sep 2017 03:56:35 +0000 (23:56 -0400)
committerDavid Feuer <David.Feuer@gmail.com>
Fri, 8 Sep 2017 03:56:36 +0000 (23:56 -0400)
commit011e15aa2d6949fc56126f1028ea25d5497196d9
tree2dfff303e970953b1d5fb5959911b8352ec14b29
parentcb4878ffd18a3c70f98bdbb413cd3c4d1f054e1f
Deal with unbreakable blocks in Applicative Do

The renamer wasn't able to deal with more than a couple strict
patterns in a row with `ApplicativeDo` when using the heuristic
splitter. Update it to work with them properly.

Reviewers: simonmar, austin, bgamari, hvr

Reviewed By: simonmar

Subscribers: RyanGlScott, lippling, rwbarton, thomie

GHC Trac Issues: #14163

Differential Revision: https://phabricator.haskell.org/D3900
compiler/rename/RnExpr.hs
testsuite/tests/ado/T14163.hs [new file with mode: 0644]
testsuite/tests/ado/T14163.stdin [new file with mode: 0644]
testsuite/tests/ado/T14163.stdout [new file with mode: 0644]
testsuite/tests/ado/all.T