Add -Wmissing-deriving-strategies
authorchessai <chessai1996@gmail.com>
Wed, 26 Dec 2018 17:12:37 +0000 (12:12 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sun, 6 Jan 2019 12:27:09 +0000 (07:27 -0500)
commitc121e33f9b039acf2ac6939af8bfafe593560039
treebb61fb561f3fce2c0f5d8d90884e76d5297bc609
parent08b8ea2f4f1bbc1c61a7cca03ae7fa8ffb099556
Add -Wmissing-deriving-strategies

Warn users when -XDerivingStrategies is enabled but not used, at each
potential use site.

add -Wmissing-deriving-strategies

Reviewers: bgamari, RyanGlScott

Subscribers: andrewthad, rwbarton, carter

GHC Trac Issues: #15798

Differential Revision: https://phabricator.haskell.org/D5451
13 files changed:
compiler/main/DynFlags.hs
compiler/rename/RnSource.hs
compiler/typecheck/TcDerivUtils.hs
docs/users_guide/8.8.1-notes.rst
docs/users_guide/extending_ghc.rst
docs/users_guide/using-warnings.rst
testsuite/tests/rename/should_compile/T15798a.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T15798a.stderr [new file with mode: 0644]
testsuite/tests/rename/should_compile/T15798b.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T15798b.stderr [new file with mode: 0644]
testsuite/tests/rename/should_compile/T15798c.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T15798c.stderr [new file with mode: 0644]
testsuite/tests/rename/should_compile/all.T