diff options
author | Simon Marlow <marlowsd@gmail.com> | 2018-09-26 15:32:29 -0500 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2018-09-27 10:53:21 -0500 |
commit | d00c308633fe7d216d31a1087e00e63532d87d6d (patch) | |
tree | 884294772ad1332e581c88c50b33622d964136c4 /testsuite/tests/th/T15481.stderr | |
parent | 1d7b61f97f9ec3780a1b7b5bf95a880d56224f4f (diff) | |
download | haskell-d00c308633fe7d216d31a1087e00e63532d87d6d.tar.gz |
Fix for recover with -fexternal-interpreter (#15418)
Summary:
When using -fexternal-interpreter, recover was not treating a Q
compuation that simply registered an error with addErrTc as failing.
Test Plan:
New unit tests:
* T15418 is the repro from in the ticket
* TH_recover_warns is a new test to ensure that we're keeping warnings when
the body of recover succeeds.
Reviewers: bgamari, RyanGlScott, angerman, goldfire, erikd
Subscribers: rwbarton, carter
GHC Trac Issues: #15418
Differential Revision: https://phabricator.haskell.org/D5185
Diffstat (limited to 'testsuite/tests/th/T15481.stderr')
-rw-r--r-- | testsuite/tests/th/T15481.stderr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/th/T15481.stderr b/testsuite/tests/th/T15481.stderr new file mode 100644 index 0000000000..69a8c7b0e7 --- /dev/null +++ b/testsuite/tests/th/T15481.stderr @@ -0,0 +1,8 @@ +T15481.hs:(7,19)-(10,63): Splicing expression + recover + (stringE "reifyFixity failed") + (do foo <- newName "foo" + _ <- reifyFixity foo + stringE "reifyFixity successful") + ======> + "reifyFixity failed" |