users-guide: Add -Wredundant-constraints to flags reference
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 24 Mar 2016 21:32:20 +0000 (22:32 +0100)
committerBen Gamari <ben@smart-cactus.org>
Thu, 24 Mar 2016 21:32:29 +0000 (22:32 +0100)
Test Plan: Validate and read

Reviewers: austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2035

GHC Trac Issues: #11741

docs/users_guide/using-warnings.rst
utils/mkUserGuidePart/Options/Warnings.hs

index ffe5a41..16c6585 100644 (file)
@@ -398,6 +398,8 @@ of ``-W(no-)*``.
 
 .. ghc-flag:: -Wredundant-constraints
 
+    :since: 8.0
+
     .. index::
        single: redundant constraints, warning
 
index b194bf2..3552172 100644 (file)
@@ -370,6 +370,13 @@ warningsOptions =
          , flagType = DynamicFlag
          , flagReverse = "-Wno-amp"
          }
+  , flag { flagName = "-Wredundant-constraints"
+         , flagDescription =
+           "Have the compiler warn about redundant constraints in type"++
+           "signatures."
+         , flagType = DynamicFlag
+         , flagReverse = "-Wno-redundant-constraints"
+         }
   , flag { flagName = "-Wdeferred-type-errors"
          , flagDescription =
            "Report warnings when :ref:`deferred type errors "++