diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2017-07-25 16:14:27 -0400 |
---|---|---|
committer | Ryan Scott <ryan.gl.scott@gmail.com> | 2017-07-25 16:14:27 -0400 |
commit | 6bb32ba78580271921e3d5c3c98afac2c1b68de4 (patch) | |
tree | 6ed5c55ec28f127d534d504829ec277b6ec5739b /testsuite/tests/deriving/should_fail/all.T | |
parent | 36b270a94e689220c77ab49a863435dda6b60621 (diff) | |
download | haskell-6bb32ba78580271921e3d5c3c98afac2c1b68de4.tar.gz |
Fix #10684 by processing deriving clauses with finer grain
Summary:
Previously, one could experience error cascades with deriving clauses
when one class in a set of many failed to derive, causing the other derived
classes to be skipped entirely and resulting in other errors down the line.
The solution is to process each class in a data type's set of deriving clauses
individually, and engineer it so that failure to derive an individual class
within that set doesn't cancel out the others.
Test Plan: make test TEST="T10684 T12801"
Reviewers: austin, bgamari, simonpj
Reviewed By: simonpj
Subscribers: simonpj, rwbarton, thomie
GHC Trac Issues: #10684, #12801
Differential Revision: https://phabricator.haskell.org/D3771
Diffstat (limited to 'testsuite/tests/deriving/should_fail/all.T')
-rw-r--r-- | testsuite/tests/deriving/should_fail/all.T | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_fail/all.T b/testsuite/tests/deriving/should_fail/all.T index 9f3781ccf0..5fa589f321 100644 --- a/testsuite/tests/deriving/should_fail/all.T +++ b/testsuite/tests/deriving/should_fail/all.T @@ -60,7 +60,9 @@ test('T10598_fail3', normal, compile_fail, ['']) test('T10598_fail4', normal, compile_fail, ['']) test('T10598_fail5', normal, compile_fail, ['']) test('T10598_fail6', normal, compile_fail, ['']) +test('T10684', normal, compile_fail, ['']) test('T11509_1', [when(doing_ghci(), extra_hc_opts('-fobject-code'))], compile_fail, ['']) test('T12163', normal, compile_fail, ['']) test('T12512', omit_ways(['ghci']), compile_fail, ['']) +test('T12801', normal, compile_fail, ['']) |