[commit: ghc] master: Rename missing-pat-syn-sigs to missing-pat-syn-signatures (3c39bec)
git at git.haskell.org
git at git.haskell.org
Mon Feb 15 23:31:51 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/3c39bec12e1abfae911a451d3dfb0039b943819d/ghc
>---------------------------------------------------------------
commit 3c39bec12e1abfae911a451d3dfb0039b943819d
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date: Mon Feb 15 23:33:04 2016 +0000
Rename missing-pat-syn-sigs to missing-pat-syn-signatures
>---------------------------------------------------------------
3c39bec12e1abfae911a451d3dfb0039b943819d
compiler/main/DynFlags.hs | 2 +-
docs/users_guide/8.0.1-notes.rst | 2 +-
docs/users_guide/using-warnings.rst | 4 ++--
testsuite/tests/patsyn/should_fail/T11053.hs | 2 +-
testsuite/tests/patsyn/should_fail/all.T | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index b2c3699..6460b16 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -3223,7 +3223,7 @@ wWarningFlagsDeps = [
flagSpec "unused-type-patterns" Opt_WarnUnusedTypePatterns,
flagSpec "warnings-deprecations" Opt_WarnWarningsDeprecations,
flagSpec "wrong-do-bind" Opt_WarnWrongDoBind,
- flagSpec "missing-pat-syn-sigs" Opt_WarnMissingPatSynSigs,
+ flagSpec "missing-pat-syn-signatures" Opt_WarnMissingPatSynSigs,
flagSpec "unrecognised-warning-flags" Opt_WarnUnrecognisedWarningFlags ]
-- | These @-\<blah\>@ flags can all be reversed with @-no-\<blah\>@
diff --git a/docs/users_guide/8.0.1-notes.rst b/docs/users_guide/8.0.1-notes.rst
index fe3ab69..5bc3e59 100644
--- a/docs/users_guide/8.0.1-notes.rst
+++ b/docs/users_guide/8.0.1-notes.rst
@@ -268,7 +268,7 @@ Compiler
warnings makes sure the definition of ``Semigroup`` as a superclass of
``Monoid`` does not break any code.
-- Added the :ghc-flag:`-Wmissing-pat-syn-sigs` flag. When enabled, this will issue
+- Added the :ghc-flag:`-Wmissing-pat-syn-signatures` flag. When enabled, this will issue
a warning when a pattern synonym definition doesn't have a type signature.
It is turned off by default but enabled by :ghc-flag:`-Wall`.
diff --git a/docs/users_guide/using-warnings.rst b/docs/users_guide/using-warnings.rst
index 7fd2019..5727b82 100644
--- a/docs/users_guide/using-warnings.rst
+++ b/docs/users_guide/using-warnings.rst
@@ -618,13 +618,13 @@ of ``-W(no-)*``.
about any polymorphic local bindings. As part of the warning GHC
also reports the inferred type. The option is off by default.
-.. ghc-flag:: -Wmissing-pat-syn-sigs
+.. ghc-flag:: -Wmissing-pat-syn-signatures
.. index::
single: type signatures, missing, pattern synonyms
If you would like GHC to check that every pattern synonym has a type
- signature, use the :ghc-flag:`-Wmissing-pat-syn-sigs` option. If this option is
+ signature, use the :ghc-flag:`-Wmissing-pat-syn-signatures` option. If this option is
used in conjunction with :ghc-flag:`-Wmissing-exported-sigs` then only
exported pattern synonyms must have a type signature. GHC also reports the
inferred type. This option is off by default.
diff --git a/testsuite/tests/patsyn/should_fail/T11053.hs b/testsuite/tests/patsyn/should_fail/T11053.hs
index 33dec45..1ef3026 100644
--- a/testsuite/tests/patsyn/should_fail/T11053.hs
+++ b/testsuite/tests/patsyn/should_fail/T11053.hs
@@ -1,5 +1,5 @@
{-# LANGUAGE PatternSynonyms #-}
--- turn on with -fwarn-missing-pat-syn-sigs
+-- turn on with -fwarn-missing-pat-syn-signatures
module Foo where
diff --git a/testsuite/tests/patsyn/should_fail/all.T b/testsuite/tests/patsyn/should_fail/all.T
index fbe5d58..871d623 100644
--- a/testsuite/tests/patsyn/should_fail/all.T
+++ b/testsuite/tests/patsyn/should_fail/all.T
@@ -26,6 +26,6 @@ test('poly-export-fail2', expect_broken(10653), compile_fail, [''])
test('export-super-class-fail', expect_broken(10653), compile_fail, [''])
test('export-type-synonym', normal, compile_fail, [''])
test('export-ps-rec-sel', normal, compile_fail, [''])
-test('T11053', normal, compile, ['-fwarn-missing-pat-syn-sigs'])
+test('T11053', normal, compile, ['-fwarn-missing-pat-syn-signatures'])
test('T10426', normal, compile_fail, [''])
test('T11265', normal, compile_fail, [''])
More information about the ghc-commits
mailing list