Fix the GHCi debugger with ApplicativeDo
authorSimon Marlow <marlowsd@gmail.com>
Sun, 22 Jul 2018 15:03:33 +0000 (17:03 +0200)
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>
Sun, 22 Jul 2018 15:03:34 +0000 (17:03 +0200)
commit4ea9311cc5c3b99ea6915bee23f0a6776731f20e
tree0cad7a50332dab608357397f7869cb8eb364b2ac
parent5a49651f3161473b383ec497af38e9daa022b9ac
Fix the GHCi debugger with ApplicativeDo

Summary:
`collectLStmtsBinders` was returning nothing for `ApplicativeStmts`, which
caused the debugger to not track free variables in many cases when using
`ApplicativeDo`.

Test Plan:
* new test case
* validate

Reviewers: bgamari, erikd

Reviewed By: bgamari

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #15422

Differential Revision: https://phabricator.haskell.org/D4991
compiler/hsSyn/HsUtils.hs
testsuite/tests/ghci.debugger/scripts/all.T
testsuite/tests/ghci.debugger/scripts/break029.hs [new file with mode: 0644]
testsuite/tests/ghci.debugger/scripts/break029.script [new file with mode: 0644]
testsuite/tests/ghci.debugger/scripts/break029.stdout [new file with mode: 0644]