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,324
Issues
4,324
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
373
Merge Requests
373
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
1de9bc2b
Commit
1de9bc2b
authored
Oct 31, 2008
by
simonpj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow improvements in type signatures
parent
01971846
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
testsuite/tests/ghc-regress/gadt/gadt-escape1.stderr
testsuite/tests/ghc-regress/gadt/gadt-escape1.stderr
+1
-1
testsuite/tests/ghc-regress/gadt/gadt13.stderr
testsuite/tests/ghc-regress/gadt/gadt13.stderr
+1
-1
testsuite/tests/ghc-regress/gadt/gadt7.stderr
testsuite/tests/ghc-regress/gadt/gadt7.stderr
+2
-2
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail172.stderr
.../tests/ghc-regress/typecheck/should_fail/tcfail172.stderr
+1
-1
No files found.
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'
Solution: add a type signature
Probable solution: 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'
Solution: add a type signature
Probable solution: 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'
Solution: add a type signature
Probable solution: 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'
Solution: add a type signature
Probable solution: add a type signature for `is_normal'
In the pattern: Nil
In the definition of `is_normal': is_normal Nil = True
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