summaryrefslogtreecommitdiff
path: root/docs/users_guide/using-warnings.rst
diff options
context:
space:
mode:
authorerdeszt <erdeszt@gmail.com>2017-06-17 13:47:10 +0200
committerBen Gamari <ben@smart-cactus.org>2017-06-19 10:59:05 -0400
commit986deaa5539552f84b4f1d1872ae8a4c8240097e (patch)
tree1a8a28c0b38a8458869c62f10aae86f055bea942 /docs/users_guide/using-warnings.rst
parent564a31f32e522398c50828bcf35cf8deeec5e654 (diff)
downloadhaskell-986deaa5539552f84b4f1d1872ae8a4c8240097e.tar.gz
Add missing -Wdeprecations flag to the users guide
Diffstat (limited to 'docs/users_guide/using-warnings.rst')
-rw-r--r--docs/users_guide/using-warnings.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/users_guide/using-warnings.rst b/docs/users_guide/using-warnings.rst
index 9bc1c35590..9f10efb866 100644
--- a/docs/users_guide/using-warnings.rst
+++ b/docs/users_guide/using-warnings.rst
@@ -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::