diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2016-01-25 14:51:50 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-01-25 16:04:59 +0100 |
commit | 132c20894d102558cc8f3aee5bc289425d0ddb24 (patch) | |
tree | cd904440d86342d1d0d91f7e265e12593fd4bc8d /testsuite | |
parent | bc1e085c5dc239b66e970fdc5117aec0933a9a37 (diff) | |
download | haskell-132c20894d102558cc8f3aee5bc289425d0ddb24.tar.gz |
Rename -Wmissing-monadfail-instance to plural-form
This warning flag was recently introduced as part of #10751. However,
it was missed during code-review that almost all existing warning
flags use a plural-form, so for consistency this commit renames
that warning flag to `-Wmissing-monadfail-instances`.
Test Plan: local validate (still running)
Reviewers: quchen, goldfire, austin, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1842
GHC Trac Issues: #10751
Diffstat (limited to 'testsuite')
4 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/tests/monadfail/MonadFailWarnings.hs b/testsuite/tests/monadfail/MonadFailWarnings.hs index 3b786cc8c7..a1d3729222 100644 --- a/testsuite/tests/monadfail/MonadFailWarnings.hs +++ b/testsuite/tests/monadfail/MonadFailWarnings.hs @@ -2,7 +2,7 @@ -- Ensure that MonadFail warnings are issued correctly if the warning flag -- is enabled -{-# OPTIONS_GHC -fwarn-missing-monadfail-instance #-} +{-# OPTIONS_GHC -Wmissing-monadfail-instances #-} module MonadFailWarnings where diff --git a/testsuite/tests/monadfail/MonadFailWarningsWithRebindableSyntax.hs b/testsuite/tests/monadfail/MonadFailWarningsWithRebindableSyntax.hs index c9f25027f9..6126e24e26 100644 --- a/testsuite/tests/monadfail/MonadFailWarningsWithRebindableSyntax.hs +++ b/testsuite/tests/monadfail/MonadFailWarningsWithRebindableSyntax.hs @@ -2,7 +2,7 @@ -- RebindableSyntax does not play that well with MonadFail, so here we ensure -- that when both settings are enabled we get the proper warning. -{-# OPTIONS_GHC -fwarn-missing-monadfail-instance #-} +{-# OPTIONS_GHC -Wmissing-monadfail-instances #-} {-# LANGUAGE RebindableSyntax #-} module MonadFailWarningsWithRebindableSyntax where diff --git a/testsuite/tests/monadfail/MonadFailWarningsWithRebindableSyntax.stderr b/testsuite/tests/monadfail/MonadFailWarningsWithRebindableSyntax.stderr index 819c878dc9..9610f8971f 100644 --- a/testsuite/tests/monadfail/MonadFailWarningsWithRebindableSyntax.stderr +++ b/testsuite/tests/monadfail/MonadFailWarningsWithRebindableSyntax.stderr @@ -2,4 +2,4 @@ MonadFailWarningsWithRebindableSyntax.hs:13:5: warning: The failable pattern ‘Just x’ is used together with -XRebindableSyntax. If this is intentional, - compile with -fno-warn-missing-monadfail-instance. + compile with -Wno-missing-monadfail-instances. diff --git a/testsuite/tests/rebindable/rebindable1.hs b/testsuite/tests/rebindable/rebindable1.hs index 7bf3e237a6..4ff8ed2d4d 100644 --- a/testsuite/tests/rebindable/rebindable1.hs +++ b/testsuite/tests/rebindable/rebindable1.hs @@ -1,4 +1,4 @@ -{-# OPTIONS_GHC -fno-warn-missing-monadfail-instance #-} +{-# OPTIONS_GHC -Wno-missing-monadfail-instances #-} {-# LANGUAGE RebindableSyntax, NPlusKPatterns #-} module RebindableCase1 where |