Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,273
Issues
4,273
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
413
Merge Requests
413
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
3c39bec1
Commit
3c39bec1
authored
Feb 15, 2016
by
Matthew Pickering
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename missing-pat-syn-sigs to missing-pat-syn-signatures
parent
426a25c7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
compiler/main/DynFlags.hs
compiler/main/DynFlags.hs
+1
-1
docs/users_guide/8.0.1-notes.rst
docs/users_guide/8.0.1-notes.rst
+1
-1
docs/users_guide/using-warnings.rst
docs/users_guide/using-warnings.rst
+2
-2
testsuite/tests/patsyn/should_fail/T11053.hs
testsuite/tests/patsyn/should_fail/T11053.hs
+1
-1
testsuite/tests/patsyn/should_fail/all.T
testsuite/tests/patsyn/should_fail/all.T
+1
-1
No files found.
compiler/main/DynFlags.hs
View file @
3c39bec1
...
...
@@ -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-sig
s"
Opt_WarnMissingPatSynSigs
,
flagSpec
"missing-pat-syn-sig
natures"
Opt_WarnMissingPatSynSigs
,
flagSpec
"unrecognised-warning-flags"
Opt_WarnUnrecognisedWarningFlags
]
-- | These @-\<blah\>@ flags can all be reversed with @-no-\<blah\>@
...
...
docs/users_guide/8.0.1-notes.rst
View file @
3c39bec1
...
...
@@ -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
-
sig
nature
s
`
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`.
...
...
docs/users_guide/using-warnings.rst
View file @
3c39bec1
...
...
@@ -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-sig
nature
s
.. 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-sig
nature
s` 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.
...
...
testsuite/tests/patsyn/should_fail/T11053.hs
View file @
3c39bec1
{-# LANGUAGE PatternSynonyms #-}
-- turn on with -fwarn-missing-pat-syn-sigs
-- turn on with -fwarn-missing-pat-syn-sig
nature
s
module
Foo
where
...
...
testsuite/tests/patsyn/should_fail/all.T
View file @
3c39bec1
...
...
@@ -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-sig
nature
s
'])
test
('
T10426
',
normal
,
compile_fail
,
[''])
test
('
T11265
',
normal
,
compile_fail
,
[''])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment