driver: split -fwarn-unused-binds into 3 flags (fixes #17)
authorOleg Grenrus <oleg.grenrus@iki.fi>
Mon, 23 Feb 2015 14:51:28 +0000 (08:51 -0600)
committerAustin Seipp <austin@well-typed.com>
Mon, 23 Feb 2015 14:52:10 +0000 (08:52 -0600)
commitaead01902e1c41e85b758dbafd15e60d08956374
tree9b7b4e48d614997f59cb694e613a78bdc6889722
parent26a85bd8a84df9ac68d011603ad01f4e4dbd1364
driver: split -fwarn-unused-binds into 3 flags (fixes #17)

Summary: New flags:

 -fwarn-unused-top-binds
 -fwarn-unused-local-binds
 -fwarn-unused-pattern-binds

Test Plan: `tests/rename/should_compile/T17` tests

Correct other tests

Reviewers: austin, rwbarton

Reviewed By: austin, rwbarton

Subscribers: rwbarton, carter, thomie

Differential Revision: https://phabricator.haskell.org/D591

GHC Trac Issues: #17
18 files changed:
compiler/main/DynFlags.hs
compiler/main/InteractiveEval.hs
compiler/rename/RnBinds.hs
compiler/rename/RnEnv.hs
docs/users_guide/flags.xml
docs/users_guide/using.xml
testsuite/tests/rename/should_compile/T17a.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T17a.stderr [new file with mode: 0644]
testsuite/tests/rename/should_compile/T17b.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T17b.stderr [new file with mode: 0644]
testsuite/tests/rename/should_compile/T17c.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T17c.stderr [new file with mode: 0644]
testsuite/tests/rename/should_compile/T17d.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T17d.stderr [new file with mode: 0644]
testsuite/tests/rename/should_compile/T17e.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T17e.stderr [new file with mode: 0644]
testsuite/tests/rename/should_compile/all.T
testsuite/tests/rename/should_compile/rn040.hs