Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
1de9bc2b
Commit
1de9bc2b
authored
Oct 31, 2008
by
simonpj
Browse files
Follow improvements in type signatures
parent
01971846
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/gadt/gadt-escape1.stderr
View file @
1de9bc2b
gadt-escape1.hs:16:52:
GADT pattern match with non-rigid result type `t'
Solution: add a type signature
Solution: add a type signature
for the entire case expression
In a case alternative: Hidden (ExpInt _) a -> a
In the expression:
case (hval :: Hidden) of { Hidden (ExpInt _) a -> a }
...
...
testsuite/tests/ghc-regress/gadt/gadt13.stderr
View file @
1de9bc2b
gadt13.hs:12:5:
GADT pattern match in non-rigid context for `I'
S
olution: add a type signature
Probable s
olution: add a type signature
for `shw'
In the pattern: I t
In the definition of `shw': shw (I t) = ("I " ++) . shows t
testsuite/tests/ghc-regress/gadt/gadt7.stderr
View file @
1de9bc2b
gadt7.hs:12:31:
GADT pattern match in non-rigid context for `K'
S
olution: add a type signature
Probable s
olution: add a type signature
for the scrutinee of the case expression
In the pattern: K
In a case alternative: K -> y1
In the expression: case t1 of { K -> y1 }
gadt7.hs:15:32:
GADT pattern match in non-rigid context for `K'
S
olution: add a type signature
Probable s
olution: add a type signature
for the scrutinee of the case expression
In the pattern: K
In a case alternative: K -> y1
In the expression: case t1 of { K -> y1 }
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail172.stderr
View file @
1de9bc2b
tcfail172.hs:19:10:
GADT pattern match in non-rigid context for `Nil'
S
olution: add a type signature
Probable s
olution: add a type signature
for `is_normal'
In the pattern: Nil
In the definition of `is_normal': is_normal Nil = True
Write
Preview
Supports
Markdown
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