Commit d360f343 authored by MaxGabriel's avatar MaxGabriel Committed by Marge Bot

Document -Wderiving-typeable

Tracking: #18641
parent accdb24a
......@@ -4,7 +4,6 @@
......@@ -1881,6 +1881,20 @@ of ``-W(no-)*``.
Does nothing.
.. ghc-flag:: -Wderiving-typeable
:shortdesc: warn when Typeable is derived
:type: dynamic
:reverse: -Wno-deriving-typeable
:since: 7.10
This flag warns when ``Typeable`` is listed in a deriving clause
or derived with :extension:`StandaloneDeriving`.
Since GHC 7.10, ``Typeable`` is automatically derived for all types.
Thus, deriving ``Typeable`` yourself is redundant.
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
sanity, not yours.)
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