Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Hensing
GHC
Commits
233c5ced
Commit
233c5ced
authored
7 years ago
by
Ben Gamari
Browse files
Options
Downloads
Patches
Plain Diff
testsuite: Fix test output broken by
efba0546
Looks right to me. (cherry picked from commit
7d9812e8
)
parent
d6f2f231
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/tests/typecheck/should_fail/T10619.stderr
+2
-2
2 additions, 2 deletions
testsuite/tests/typecheck/should_fail/T10619.stderr
testsuite/tests/typecheck/should_fail/T5691.stderr
+5
-5
5 additions, 5 deletions
testsuite/tests/typecheck/should_fail/T5691.stderr
with
7 additions
and
7 deletions
testsuite/tests/typecheck/should_fail/T10619.stderr
+
2
−
2
View file @
233c5ced
T10619.hs:9:15: error:
• Couldn't match type
‘b -> b’ with
‘forall a. a -> a’
• Couldn't match type ‘forall a. a -> a’
with ‘b -> b’
Expected type: (b -> b) -> b -> b
Actual type: (forall a. a -> a) -> b -> b
• In the expression:
...
...
@@ -40,7 +40,7 @@ T10619.hs:14:15: error:
bar :: p -> (b -> b) -> b -> b (bound at T10619.hs:12:1)
T10619.hs:16:13: error:
• Couldn't match type
‘b -> b’ with
‘forall a. a -> a’
• Couldn't match type ‘forall a. a -> a’
with ‘b -> b’
Expected type: (b -> b) -> b -> b
Actual type: (forall a. a -> a) -> b -> b
• In the expression:
...
...
This diff is collapsed.
Click to expand it.
testsuite/tests/typecheck/should_fail/T5691.stderr
+
5
−
5
View file @
233c5ced
T5691.hs:1
5:24
: error:
T5691.hs:1
4:9
: error:
• Couldn't match type ‘p’ with ‘PrintRuleInterp’
Expected type: PrintRuleInterp a
Actual type: p a
•
I
n
t
he
first argument of ‘printRule_’, namely ‘f’
In the second argument of ‘($)’, namely ‘printRule_ f’
In the
expression: MkPRI $ printRule_ f
• Relevant bindings include f :: p a (bound at T5691.hs:14:9)
•
Whe
n
c
he
cking that the pattern signature: p a
fits the type of its context: PrintRuleInterp a
In the
pattern: f :: p a
In an equation for ‘test’: test (f :: p a) = MkPRI $ printRule_ f
T5691.hs:24:10: error:
• No instance for (Alternative RecDecParser)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment