Make ghc -e fail on invalid declarations
authorReid Barton <rwbarton@gmail.com>
Tue, 23 Dec 2014 21:16:29 +0000 (16:16 -0500)
committerReid Barton <rwbarton@gmail.com>
Tue, 23 Dec 2014 21:16:29 +0000 (16:16 -0500)
commitcc510b46b4f6046115cd74acc2c8726c91823bcf
treeb52fb8532fde8d9b69f9251ffb4a090e58590856
parent878910e1c4520732ab9d8372c1c81f00d484e48f
Make ghc -e fail on invalid declarations

Summary:
Note: This commit includes an API change to GhciMonad.runDecls
to allow the caller to determine whether the declarations were
run successfully or not.

Test Plan: harbormaster

Reviewers: austin

Reviewed By: austin

Subscribers: carter, thomie

Differential Revision: https://phabricator.haskell.org/D582
ghc/GhciMonad.hs
ghc/InteractiveUI.hs
testsuite/tests/ghc-e/should_fail/Makefile
testsuite/tests/ghc-e/should_fail/all.T
testsuite/tests/ghc-e/should_run/Makefile
testsuite/tests/ghc-e/should_run/all.T
testsuite/tests/ghc-e/should_run/ghc-e006.stdout [new file with mode: 0644]