[commit: ghc] master: Add `-W(no-)xxx` aliases for `-f(no-)warn-xxx` flags (2206fa8)

git at git.haskell.org git at git.haskell.org
Wed Dec 16 11:31:22 UTC 2015


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

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

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

commit 2206fa8cdb1209320f3690690b610320b4810de6
Author: David Luposchainsky <dluposchainsky at gmail.com>
Date:   Wed Dec 16 11:42:00 2015 +0100

    Add `-W(no-)xxx` aliases for `-f(no-)warn-xxx` flags
    
    This also updates the user's guide to refer to the `-W`-based warning
    flags by default.
    
    Quoting the release note entry:
    
    | Warnings can now be controlled with `-W(no-)...` flags in addition to
    | the old `-f(no-)warn...` ones. This was done as the first part of a
    | rewrite of the warning system to provide better control over warnings,
    | better warning messages, and more common syntax compared to other
    | compilers. The old `-fwarn...`-based warning flags will remain
    | functional for the forseeable future.
    
    This is part of
    https://ghc.haskell.org/wiki/Design/Warnings
    and addresses #11218
    
    Reviewed By: hvr, bgamari
    
    Differential Revision: https://phabricator.haskell.org/D1613


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

2206fa8cdb1209320f3690690b610320b4810de6
 compiler/main/DynFlags.hs                   | 176 +++++++++--------
 compiler/main/HscMain.hs                    |   4 +-
 compiler/main/InteractiveEval.hs            |   2 +-
 compiler/rename/RnPat.hs                    |   2 +-
 compiler/typecheck/TcClassDcl.hs            |   2 +-
 compiler/typecheck/TcDeriv.hs               |   2 +-
 compiler/typecheck/TcErrors.hs              |   4 +-
 compiler/typecheck/TcSimplify.hs            |   4 +-
 docs/users_guide/7.12.1-notes.rst           |  19 +-
 docs/users_guide/ghci.rst                   |   8 +-
 docs/users_guide/glasgow_exts.rst           |  18 +-
 docs/users_guide/runghc.rst                 |   2 +-
 docs/users_guide/safe_haskell.rst           |   6 +-
 docs/users_guide/separate_compilation.rst   |   4 +-
 docs/users_guide/sooner.rst                 |   2 +-
 docs/users_guide/using-warnings.rst         | 288 ++++++++++++++--------------
 docs/users_guide/using.rst                  |   4 +-
 ghc/InteractiveUI.hs                        |  15 +-
 testsuite/tests/ghci/scripts/Makefile       |   2 +-
 testsuite/tests/ghci/scripts/ghci024.stdout |   4 +-
 utils/mkUserGuidePart/Options/Warnings.hs   | 196 +++++++++----------
 21 files changed, 391 insertions(+), 373 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 2206fa8cdb1209320f3690690b610320b4810de6


More information about the ghc-commits mailing list