Add -fwarn-missing-monadfail-instance to mkUserGuidePart
authorBen Gamari <ben@smart-cactus.org>
Wed, 18 Nov 2015 11:20:35 +0000 (12:20 +0100)
committerBen Gamari <ben@smart-cactus.org>
Wed, 18 Nov 2015 11:53:50 +0000 (12:53 +0100)
utils/mkUserGuidePart/Options/Warnings.hs

index 593a20c..d3c2a5c 100644 (file)
@@ -145,6 +145,13 @@ warningsOptions =
          , flagType = DynamicFlag
          , flagReverse = "-fno-warn-missing-local-sigs"
          }
+  , flag { flagName = "-fwarn-missing-monadfail-instance"
+         , flagDescription =
+           "warn when a failable pattern is used in a do-block that does not  "++
+           "have a ``MonadFail`` instance."
+         , flagType = DynamicFlag
+         , flagReverse = "-fno-warn-missing-monadfail-instance"
+         }
   , flag { flagName = "-fwarn-missed-specialisations"
          , flagDescription =
            "warn when specialisation of an imported, overloaded function fails."