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.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/users_guide/using-warnings.rst b/docs/users_guide/using-warnings.rst
index c7470f7d48..b0e40e281a 100644
--- a/docs/users_guide/using-warnings.rst
+++ b/docs/users_guide/using-warnings.rst
@@ -78,6 +78,7 @@ as ``-Wno-...`` for every individual warning in the group.
* :ghc-flag:`-Wforall-identifier`
* :ghc-flag:`-Wgadt-mono-local-binds`
* :ghc-flag:`-Wtype-equality-requires-operators`
+ * :ghc-flag:`-Wunclassified`
.. ghc-flag:: -W
:shortdesc: enable normal warnings
@@ -2397,6 +2398,20 @@ of ``-W(no-)*``.
When :ghc-flag:`-Wterm-variable-capture` is enabled, GHC warns against implicit quantification
that would stop working under ``RequiredTypeArguments``.
+.. ghc-flag:: -Wunclassified
+ :shortdesc: warn about issues that are not controlled by another flag
+ :type: dynamic
+ :reverse: -Wno-unclassified
+
+ :since: 9.8.1
+
+ :default: on
+
+ There are a variety of warnings that are enabled by default and do not have
+ a more specific flag to control them. These are grouped under the
+ :ghc-flag:`-Wunclassified` flag, primarily so that they can be silenced
+ or selectively promoted to errors.
+
If you're feeling really paranoid, the :ghc-flag:`-dcore-lint` option is a good choice.
It turns on heavyweight intra-pass sanity-checking within GHC. (It checks GHC's