Add `-W(no-)xxx` aliases for `-f(no-)warn-xxx` flags
authorDavid Luposchainsky <dluposchainsky@gmail.com>
Wed, 16 Dec 2015 10:42:00 +0000 (11:42 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Wed, 16 Dec 2015 11:31:35 +0000 (12:31 +0100)
commit2206fa8cdb1209320f3690690b610320b4810de6
tree6b2ffe50753ed62035716f6fba9e0d0a4ff51b26
parent3a48e6ef80e4bf3d84814316cace259147f67df2
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
21 files changed:
compiler/main/DynFlags.hs
compiler/main/HscMain.hs
compiler/main/InteractiveEval.hs
compiler/rename/RnPat.hs
compiler/typecheck/TcClassDcl.hs
compiler/typecheck/TcDeriv.hs
compiler/typecheck/TcErrors.hs
compiler/typecheck/TcSimplify.hs
docs/users_guide/7.12.1-notes.rst
docs/users_guide/ghci.rst
docs/users_guide/glasgow_exts.rst
docs/users_guide/runghc.rst
docs/users_guide/safe_haskell.rst
docs/users_guide/separate_compilation.rst
docs/users_guide/sooner.rst
docs/users_guide/using-warnings.rst
docs/users_guide/using.rst
ghc/InteractiveUI.hs
testsuite/tests/ghci/scripts/Makefile
testsuite/tests/ghci/scripts/ghci024.stdout
utils/mkUserGuidePart/Options/Warnings.hs