summaryrefslogtreecommitdiff
path: root/docs/users_guide/using-warnings.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/users_guide/using-warnings.rst')
-rw-r--r--docs/users_guide/using-warnings.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/users_guide/using-warnings.rst b/docs/users_guide/using-warnings.rst
index 7f72b3eb20..3a2b4d5c84 100644
--- a/docs/users_guide/using-warnings.rst
+++ b/docs/users_guide/using-warnings.rst
@@ -14,6 +14,13 @@ of warnings.
To turn off an individual warning ``-W<wflag>``, use ``-Wno-<wflag>``.
To reverse ``-Werror``, which makes all warnings into errors, use ``-Wwarn``.
+.. note::
+ In GHC < 8 the syntax for ``-W<wflag>`` was ``-fwarn-<wflag>``
+ (e.g. ``-fwarn-incomplete-patterns``).
+ This spelling is deprecated, but still accepted for backwards compatibility.
+ Likewise, ``-Wno-<wflag>`` used to be ``fno-warn-<wflag>``
+ (e.g. ``-fno-warn-incomplete-patterns``).
+
.. ghc-flag:: -Wdefault
:shortdesc: enable default flags