diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2017-07-11 11:57:05 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-07-11 13:41:55 -0400 |
commit | 15fcd9adb75b95b32fbe08d066a2ada5f298d667 (patch) | |
tree | 8710738f939b8da12c46a673f33367c88b420367 /testsuite/tests/deriving/should_compile/all.T | |
parent | 6cff2caddd9b329272a7d6965b20432e8078e0d8 (diff) | |
download | haskell-15fcd9adb75b95b32fbe08d066a2ada5f298d667.tar.gz |
Suppress unused warnings for selectors for some derived classes
Although derived `Read`, `Show`, and `Generic` instances technically
don't //use// the record selectors of the data type for which an
instance is being derived, the derived code is affected by the
//presence// of record selectors. As a result, we should suppress
`-Wunused-binds` for those record selectors when deriving these classes.
This is accomplished by threading through more information from
`hasStockDeriving`.
Test Plan: make test TEST=T13919
Reviewers: austin, bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie
GHC Trac Issues: #13919
Differential Revision: https://phabricator.haskell.org/D3704
Diffstat (limited to 'testsuite/tests/deriving/should_compile/all.T')
-rw-r--r-- | testsuite/tests/deriving/should_compile/all.T | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/all.T b/testsuite/tests/deriving/should_compile/all.T index d1615ab647..7c7b29070b 100644 --- a/testsuite/tests/deriving/should_compile/all.T +++ b/testsuite/tests/deriving/should_compile/all.T @@ -92,3 +92,4 @@ test('T13758', normal, compile, ['']) test('drv-empty-data', [normalise_errmsg_fun(just_the_deriving)],compile, ['-ddump-deriv -dsuppress-uniques']) test('drv-phantom', [normalise_errmsg_fun(just_the_deriving)],compile, ['-ddump-deriv -dsuppress-uniques']) test('T13813', normal, compile, ['']) +test('T13919', normal, compile, ['']) |