Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
70eefbc2
Commit
70eefbc2
authored
Dec 31, 2015
by
Simon Peyton Jones
Browse files
Test Trac
#11245
parent
5ba3caa2
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/pmcheck/should_compile/T11245.hs
0 → 100644
View file @
70eefbc2
module
T11245
where
foo
x
=
do
let
a
|
Just
i
<-
x
,
odd
i
=
True
|
Nothing
<-
x
=
False
print
x
print
a
testsuite/tests/pmcheck/should_compile/T11245.stderr
0 → 100644
View file @
70eefbc2
T11245.hs:5:7: warning:
Pattern match(es) are non-exhaustive
In an equation for ‘a’: Guards do not cover entire pattern space
testsuite/tests/pmcheck/should_compile/all.T
View file @
70eefbc2
...
...
@@ -32,3 +32,4 @@ test('pmc004', only_compiler_types(['ghc']), compile, ['-fwarn-incomplete-patter
test
('
pmc005
',
only_compiler_types
(['
ghc
']),
compile
,
['
-fwarn-incomplete-patterns -fwarn-overlapping-patterns
'])
test
('
pmc006
',
only_compiler_types
(['
ghc
']),
compile
,
['
-fwarn-incomplete-patterns -fwarn-overlapping-patterns
'])
test
('
pmc007
',
only_compiler_types
(['
ghc
']),
compile
,
['
-fwarn-incomplete-patterns -fwarn-overlapping-patterns
'])
test
('
T11245
',
only_compiler_types
(['
ghc
']),
compile
,
['
-fwarn-incomplete-patterns -fwarn-overlapping-patterns
'])
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