Commit 986deaa5 authored by erdeszt's avatar erdeszt Committed by Ben Gamari
Browse files

Add missing -Wdeprecations flag to the users guide

parent 564a31f3
......@@ -17,6 +17,7 @@ generally likely to indicate bugs in your program. These are:
* :ghc-flag:`-Woverlapping-patterns`
* :ghc-flag:`-Wwarnings-deprecations`
* :ghc-flag:`-Wdeprecations`
* :ghc-flag:`-Wdeprecated-flags`
* :ghc-flag:`-Wunrecognised-pragmas`
* :ghc-flag:`-Wduplicate-constraints`
......@@ -246,6 +247,18 @@ of ``-W(no-)*``.
This option is on by default.
.. ghc-flag:: -Wdeprecations
.. index::
single: deprecations
Causes a warning to be emitted when a module, function or type with
a ``WARNING`` or ``DEPRECATED pragma`` is used. See
:ref:`warning-deprecated-pragma` for more details on the pragmas.
An alias for :ghc-flag:`-Wwarnings-deprecations`.
This option is on by default.
.. ghc-flag:: -Wamp
.. index::
......
......@@ -401,6 +401,13 @@ warningsOptions =
, flagType = DynamicFlag
, flagReverse = "-Wno-warnings-deprecations"
}
, flag { flagName = "-Wdeprecations"
, flagDescription =
"warn about uses of functions & types that have warnings or "++
"deprecated pragmas. Alias for :ghc-flag:`-Wwarnings-deprecations`"
, flagType = DynamicFlag
, flagReverse = "-Wno-deprecations"
}
, flag { flagName = "-Wamp"
, flagDescription =
"*(deprecated)* warn on definitions conflicting with the "++
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment