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,178
Issues
4,178
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
341
Merge Requests
341
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
1df10fbd
Commit
1df10fbd
authored
Feb 10, 2010
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fewer parens when printing HsPat
parent
ec07e1fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
46 deletions
+46
-46
testsuite/tests/ghc-regress/deSugar/should_compile/ds020.stderr-ghc
...tests/ghc-regress/deSugar/should_compile/ds020.stderr-ghc
+18
-18
testsuite/tests/ghc-regress/gadt/gadt21.stderr
testsuite/tests/ghc-regress/gadt/gadt21.stderr
+10
-10
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail124.stderr
.../tests/ghc-regress/typecheck/should_fail/tcfail124.stderr
+18
-18
No files found.
testsuite/tests/ghc-regress/deSugar/should_compile/ds020.stderr-ghc
View file @
1df10fbd
ds020.hs:5:1:
Warning: Pattern match(es) are overlapped
In the definition of `a': a ~(~[], ~[], ~[]) = ...
ds020.hs:8:1:
Warning: Pattern match(es) are overlapped
In the definition of `b': b ~(~x : ~xs : ~ys) = ...
ds020.hs:13:1:
Warning: Pattern match(es) are overlapped
In the definition of `d':
d ~(n+43) = ...
d ~(n+999) = ...
ds020.hs:19:1:
Warning: Pattern match(es) are overlapped
In the definition of `f': f (x@(~[])) = ...
ds020.hs:5:1:
Warning: Pattern match(es) are overlapped
In the definition of `a': a ~(~[], ~[], ~[]) = ...
ds020.hs:8:1:
Warning: Pattern match(es) are overlapped
In the definition of `b': b ~(~x : ~xs : ~ys) = ...
ds020.hs:13:1:
Warning: Pattern match(es) are overlapped
In the definition of `d':
d ~(n+43) = ...
d ~(n+999) = ...
ds020.hs:19:1:
Warning: Pattern match(es) are overlapped
In the definition of `f': f x@(~[]) = ...
testsuite/tests/ghc-regress/gadt/gadt21.stderr
View file @
1df10fbd
gadt21.hs:21:60:
Could not deduce (Ord a1) from the context (a ~ Set a1)
arising from a use of `f' at gadt21.hs:21:60-62
Possible fix:
add (Ord a1) to the context of the constructor `TypeSet'
In the first argument of `Just', namely `(f e)'
In the expression: Just (f e)
In the definition of `withOrdDynExpr':
withOrdDynExpr (DynExpr
(e@(Const (TypeSet _) _))) f = Just (f e)
gadt21.hs:21:60:
Could not deduce (Ord a1) from the context (a ~ Set a1)
arising from a use of `f' at gadt21.hs:21:60-62
Possible fix:
add (Ord a1) to the context of the constructor `TypeSet'
In the first argument of `Just', namely `(f e)'
In the expression: Just (f e)
In the definition of `withOrdDynExpr':
withOrdDynExpr (DynExpr
e@(Const (TypeSet _) _)) f = Just (f e)
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail124.stderr
View file @
1df10fbd
tcfail124.hs:6:8:
Couldn't match expected type `forall a. (Eq a) => [a]'
against inferred type `[a]'
In the pattern: x : _
In the definition of `f1': f1
(xs@(x : _)) = x
tcfail124.hs:9:4:
Couldn't match expected type `forall a. (Eq a) => [a]'
against inferred type `[a]'
In the pattern: [x]
In the definition of `f2': f2 [x] = x
tcfail124.hs:12:5:
Couldn't match expected type `forall a. (Eq a) => [a]'
against inferred type `[a]'
In the pattern: x : []
In the definition of `f3': f3 (x : []) = x
tcfail124.hs:6:8:
Couldn't match expected type `forall a. (Eq a) => [a]'
against inferred type `[a]'
In the pattern: x : _
In the definition of `f1': f1
xs@(x : _) = x
tcfail124.hs:9:4:
Couldn't match expected type `forall a. (Eq a) => [a]'
against inferred type `[a]'
In the pattern: [x]
In the definition of `f2': f2 [x] = x
tcfail124.hs:12:5:
Couldn't match expected type `forall a. (Eq a) => [a]'
against inferred type `[a]'
In the pattern: x : []
In the definition of `f3': f3 (x : []) = x
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