diff options
author | David Luposchainsky <dluposchainsky@gmail.com> | 2015-12-16 11:42:00 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2015-12-16 12:31:35 +0100 |
commit | 2206fa8cdb1209320f3690690b610320b4810de6 (patch) | |
tree | 6b2ffe50753ed62035716f6fba9e0d0a4ff51b26 /docs/users_guide/ghci.rst | |
parent | 3a48e6ef80e4bf3d84814316cace259147f67df2 (diff) | |
download | haskell-2206fa8cdb1209320f3690690b610320b4810de6.tar.gz |
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
Diffstat (limited to 'docs/users_guide/ghci.rst')
-rw-r--r-- | docs/users_guide/ghci.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/users_guide/ghci.rst b/docs/users_guide/ghci.rst index beb946ee2d..06cc7a2dc3 100644 --- a/docs/users_guide/ghci.rst +++ b/docs/users_guide/ghci.rst @@ -1372,7 +1372,7 @@ breakpoint. Note: GHC considers the TAB character to have a width of 1, wherever it occurs; in other words it counts characters, rather than columns. This matches what some editors do, and doesn't match others. The best advice is to avoid tab characters in your source code -altogether (see ``-fwarn-tabs`` in :ref:`options-sanity`). +altogether (see ``-Wtabs`` in :ref:`options-sanity`). If the module is omitted, then the most recently-loaded module is used. @@ -2697,11 +2697,11 @@ Setting GHC command-line options in GHCi ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Normal GHC command-line options may also be set using ``:set``. For -example, to turn on ``-fwarn-missing-signatures``, you would say: +example, to turn on ``-Wmissing-signatures``, you would say: :: - Prelude> :set -fwarn-missing-signatures + Prelude> :set -Wmissing-signatures Any GHC command-line option that is designated as dynamic (see the table in :ref:`flag-reference`), may be set using ``:set``. To unset an @@ -2712,7 +2712,7 @@ option, you can set the reverse option: :: - Prelude> :set -fno-warn-incomplete-patterns -XNoMultiParamTypeClasses + Prelude> :set -Wno-incomplete-patterns -XNoMultiParamTypeClasses :ref:`flag-reference` lists the reverse for each option where applicable. |