diff options
author | Ben Gamari <ben@smart-cactus.org> | 2015-11-18 12:20:35 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-11-18 12:53:50 +0100 |
commit | f9e17fd70d466fc00825f7324c944609f5c09251 (patch) | |
tree | 82ef15d7e4a0dae9a2582e281299f47229c8c762 /utils | |
parent | f405e1e75cd845c436e51c934958560c0e401248 (diff) | |
download | haskell-f9e17fd70d466fc00825f7324c944609f5c09251.tar.gz |
Add -fwarn-missing-monadfail-instance to mkUserGuidePart
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mkUserGuidePart/Options/Warnings.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/mkUserGuidePart/Options/Warnings.hs b/utils/mkUserGuidePart/Options/Warnings.hs index 593a20cf7e..d3c2a5c2c2 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." |