Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
a7900cf0
Commit
a7900cf0
authored
Mar 04, 2010
by
Simon Peyton Jones
Browse files
Track improvements in pretty-printing for group-by, order-by
parent
a9e79feb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
20 deletions
+16
-20
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail189.stderr
.../tests/ghc-regress/typecheck/should_fail/tcfail189.stderr
+2
-3
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail190.stderr
.../tests/ghc-regress/typecheck/should_fail/tcfail190.stderr
+4
-5
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail191.stderr
.../tests/ghc-regress/typecheck/should_fail/tcfail191.stderr
+3
-4
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail192.stderr
.../tests/ghc-regress/typecheck/should_fail/tcfail192.stderr
+3
-4
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail193.stderr
.../tests/ghc-regress/typecheck/should_fail/tcfail193.stderr
+2
-2
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail194.stderr
.../tests/ghc-regress/typecheck/should_fail/tcfail194.stderr
+2
-2
No files found.
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail189.stderr
View file @
a7900cf0
...
...
@@ -2,7 +2,6 @@
tcfail189.hs:9:31:
Couldn't match expected type `a -> t' against inferred type `[a1]'
In the expression: take 2
In a stmt of a list comprehension:
x <- [1 .. 10] then group by x using take 2
In a stmt of a list comprehension: then group by x using take 2
In the expression:
[() | x <- [1 .. 10] then group by x using take 2]
[() | x <- [1 .. 10]
,
then group by x using take 2]
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail190.stderr
View file @
a7900cf0
tcfail190.hs:1
1
:9:
tcfail190.hs:1
2
:9:
No instance for (Ord Unorderable)
arising from a use of `GHC.Exts.groupWith' at tcfail190.hs:1
1
:9
arising from a use of `GHC.Exts.groupWith' at tcfail190.hs:1
2
:9
-23
Possible fix: add an instance declaration for (Ord Unorderable)
In the expression: GHC.Exts.groupWith
In a stmt of a list comprehension:
x <- [Gnorf, Brain] then group by x
In the expression: [() | x <- [Gnorf, Brain] then group by x]
In a stmt of a list comprehension: then group by x
In the expression: [() | x <- [Gnorf, Brain], then group by x]
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail191.stderr
View file @
a7900cf0
tcfail191.hs:1
0
:9:
tcfail191.hs:1
1
:9:
Occurs check: cannot construct the infinite type: a = [a]
In the expression: take 5
In a stmt of a list comprehension:
x <- [Gnorf, Brain] then group using take 5
In a stmt of a list comprehension: then group using take 5
In the expression:
[() | x <- [Gnorf, Brain] then group using take 5]
[() | x <- [Gnorf, Brain]
,
then group using take 5]
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail192.stderr
View file @
a7900cf0
tcfail192.hs:
8
:9:
tcfail192.hs:
9
:9:
Occurs check: cannot construct the infinite type: a = [a]
In the expression: take 5
In a stmt of a list comprehension:
x <- ["Hello", "World"] then group using take 5
In a stmt of a list comprehension: then group using take 5
In the expression:
[x + 1 | x <- ["Hello", "World"] then group using take 5]
[x + 1 | x <- ["Hello", "World"]
,
then group using take 5]
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail193.stderr
View file @
a7900cf0
...
...
@@ -2,5 +2,5 @@
tcfail193.hs:10:10:
Occurs check: cannot construct the infinite type: a = [a]
In the expression: inits
In a stmt of a list comprehension:
x <- [3, 2, 1]
then inits
In the expression: [x | x <- [3, 2, 1] then inits]
In a stmt of a list comprehension: then inits
In the expression: [x | x <- [3, 2, 1]
,
then inits]
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail194.stderr
View file @
a7900cf0
...
...
@@ -2,5 +2,5 @@
tcfail194.hs:9:29:
Couldn't match expected type `a -> t' against inferred type `[a1]'
In the expression: take 5
In a stmt of a list comprehension:
x <- [1 .. 10]
then take 5 by x
In the expression: [x | x <- [1 .. 10] then take 5 by x]
In a stmt of a list comprehension: then take 5 by x
In the expression: [x | x <- [1 .. 10]
,
then take 5 by 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