Make GHCi work when RebindableSyntax is enabled
authorRyan Scott <ryan.gl.scott@gmail.com>
Fri, 2 Jun 2017 15:49:47 +0000 (11:49 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 2 Jun 2017 16:27:45 +0000 (12:27 -0400)
commit2abe54e16cbd14cab27abdc7967e907753354d54
treefec7e858402af6cd681cfb787182fbd65ca301f1
parentbf775e9d6895c07f629409ee18503f40730cb5a0
Make GHCi work when RebindableSyntax is enabled

Previously, we were running some blocks of code at the start of every
GHCi sessions which use do-notation, something which doesn't work well
if you start GHCi with the `-XRebindableSyntax` flag on. This tweaks the
code to avoid the use of do-notation so that `-XRebindableSyntax` won't
reject it.

Test Plan: make test TEST=T13385

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

GHC Trac Issues: #13385

Differential Revision: https://phabricator.haskell.org/D3621
ghc/GHCi/UI/Monad.hs
testsuite/tests/ghci/scripts/T13385.script [new file with mode: 0644]
testsuite/tests/ghci/scripts/all.T