[commit: ghc] master: driver: split -fwarn-unused-binds into 3 flags (fixes #17) (aead019)

git at git.haskell.org git at git.haskell.org
Mon Feb 23 14:52:07 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/aead01902e1c41e85b758dbafd15e60d08956374/ghc

>---------------------------------------------------------------

commit aead01902e1c41e85b758dbafd15e60d08956374
Author: Oleg Grenrus <oleg.grenrus at iki.fi>
Date:   Mon Feb 23 08:51:28 2015 -0600

    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


>---------------------------------------------------------------

aead01902e1c41e85b758dbafd15e60d08956374
 compiler/main/DynFlags.hs                         | 27 +++++++++--
 compiler/main/InteractiveEval.hs                  |  4 +-
 compiler/rename/RnBinds.hs                        |  2 +-
 compiler/rename/RnEnv.hs                          |  4 +-
 docs/users_guide/flags.xml                        | 26 +++++++++-
 docs/users_guide/using.xml                        | 59 ++++++++++++++++++-----
 testsuite/tests/rename/should_compile/T17a.hs     | 18 +++++++
 testsuite/tests/rename/should_compile/T17a.stderr |  1 +
 testsuite/tests/rename/should_compile/T17b.hs     | 18 +++++++
 testsuite/tests/rename/should_compile/T17b.stderr |  1 +
 testsuite/tests/rename/should_compile/T17c.hs     | 18 +++++++
 testsuite/tests/rename/should_compile/T17c.stderr |  1 +
 testsuite/tests/rename/should_compile/T17d.hs     | 18 +++++++
 testsuite/tests/rename/should_compile/T17d.stderr |  1 +
 testsuite/tests/rename/should_compile/T17e.hs     | 18 +++++++
 testsuite/tests/rename/should_compile/T17e.stderr |  7 +++
 testsuite/tests/rename/should_compile/all.T       |  6 +++
 testsuite/tests/rename/should_compile/rn040.hs    |  0
 18 files changed, 208 insertions(+), 21 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc aead01902e1c41e85b758dbafd15e60d08956374


More information about the ghc-commits mailing list