Disable `-fdefer-out-of-scope-variables` in ghci.
authorHE, Tao <sighingnow@gmail.com>
Thu, 14 Jun 2018 13:14:58 +0000 (09:14 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 14 Jun 2018 14:03:28 +0000 (10:03 -0400)
commit4a931665e41be2621abe4458b64190123109b746
tree1b57669d8317739281073f8c9a07ed5dd7bc5888
parent0238a6c78102d43dae2f56192bd3486e4f9ecf1d
Disable `-fdefer-out-of-scope-variables` in ghci.

We have already disabled `-fdefer-type-errors` and
`-fdefer-typed-holes` in ghci.
This patch disables `-fdefer-out-of-scope-variables` as well.

Fixes Trac #15259, as well as #14963.

Test Plan: make test TEST="T15259 T14963a T14963b T14963c"

Reviewers: bgamari, tdammers

Reviewed By: tdammers

Subscribers: tdammers, rwbarton, thomie, carter

GHC Trac Issues: #15259, #14963

Differential Revision: https://phabricator.haskell.org/D4830
15 files changed:
compiler/typecheck/TcRnDriver.hs
ghc/GHCi/UI.hs
testsuite/tests/ghci/scripts/T15259.script [new file with mode: 0644]
testsuite/tests/ghci/scripts/T15259.stderr [new file with mode: 0644]
testsuite/tests/ghci/scripts/all.T
testsuite/tests/ghci/should_run/T14963a.hs [new file with mode: 0644]
testsuite/tests/ghci/should_run/T14963a.script [new file with mode: 0644]
testsuite/tests/ghci/should_run/T14963a.stdout [new file with mode: 0644]
testsuite/tests/ghci/should_run/T14963b.hs [new file with mode: 0644]
testsuite/tests/ghci/should_run/T14963b.script [new file with mode: 0644]
testsuite/tests/ghci/should_run/T14963b.stdout [new file with mode: 0644]
testsuite/tests/ghci/should_run/T14963c.hs [new file with mode: 0644]
testsuite/tests/ghci/should_run/T14963c.script [new file with mode: 0644]
testsuite/tests/ghci/should_run/T14963c.stdout [new file with mode: 0644]
testsuite/tests/ghci/should_run/all.T