[commit: ghc] master: Add -fwarn-missing-monadfail-instance to mkUserGuidePart (f9e17fd)

git at git.haskell.org git at git.haskell.org
Wed Nov 18 11:53:55 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/f9e17fd70d466fc00825f7324c944609f5c09251/ghc

>---------------------------------------------------------------

commit f9e17fd70d466fc00825f7324c944609f5c09251
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed Nov 18 12:20:35 2015 +0100

    Add -fwarn-missing-monadfail-instance to mkUserGuidePart


>---------------------------------------------------------------

f9e17fd70d466fc00825f7324c944609f5c09251
 utils/mkUserGuidePart/Options/Warnings.hs | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/utils/mkUserGuidePart/Options/Warnings.hs b/utils/mkUserGuidePart/Options/Warnings.hs
index 593a20c..d3c2a5c 100644
--- a/utils/mkUserGuidePart/Options/Warnings.hs
+++ b/utils/mkUserGuidePart/Options/Warnings.hs
@@ -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."



More information about the ghc-commits mailing list