summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/mc25.stderr
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2013-04-29 17:33:32 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2013-04-29 17:34:16 +0100
commitd5bd2d37a84ec0fdb8a987ef58c3ad071a35afa3 (patch)
treed15ba2c43d8fe574db64129acb3a03bd745406c8 /testsuite/tests/typecheck/should_fail/mc25.stderr
parentf5d36751dad2d6d6d52649b746bb3c73a4ece076 (diff)
downloadhaskell-d5bd2d37a84ec0fdb8a987ef58c3ad071a35afa3.tar.gz
Wibbles to error messages, following the fix for Trac #7851
In effect, the error context for naked variables now takes up a "slot" in the context stack; but it is often empty. So the context stack becomes one shorter in those cases. I don't think this matters; indeed, it's aguably an improvement. Anyway that's why so many tests are affected.
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/mc25.stderr')
-rw-r--r--testsuite/tests/typecheck/should_fail/mc25.stderr37
1 files changed, 18 insertions, 19 deletions
diff --git a/testsuite/tests/typecheck/should_fail/mc25.stderr b/testsuite/tests/typecheck/should_fail/mc25.stderr
index 52b40c75dd..042de5b620 100644
--- a/testsuite/tests/typecheck/should_fail/mc25.stderr
+++ b/testsuite/tests/typecheck/should_fail/mc25.stderr
@@ -1,19 +1,18 @@
-
-mc25.hs:9:24:
- No instance for (Functor t1) arising from a use of ‛fmap’
- Possible fix:
- add (Functor t1) to the context of
- a type expected by the context: (a -> b) -> t1 a -> t1 b
- or the inferred type of z :: [t1 t]
- In the expression: fmap
- In a stmt of a monad comprehension: then group by x using take
- In the expression: [x | x <- [1 .. 10], then group by x using take]
-
-mc25.hs:9:46:
- Couldn't match type ‛Int’ with ‛a -> t’
- Expected type: (a -> t) -> [a] -> [t1 a]
- Actual type: Int -> [a] -> [a]
- Relevant bindings include z :: [t1 t] (bound at mc25.hs:9:1)
- In the expression: take
- In a stmt of a monad comprehension: then group by x using take
- In the expression: [x | x <- [1 .. 10], then group by x using take]
+
+mc25.hs:9:24:
+ No instance for (Functor t1) arising from a use of ‛fmap’
+ Possible fix:
+ add (Functor t1) to the context of
+ a type expected by the context: (a -> b) -> t1 a -> t1 b
+ or the inferred type of z :: [t1 t]
+ In the expression: fmap
+ In a stmt of a monad comprehension: then group by x using take
+ In the expression: [x | x <- [1 .. 10], then group by x using take]
+
+mc25.hs:9:46:
+ Couldn't match type ‛Int’ with ‛a -> t’
+ Expected type: (a -> t) -> [a] -> [t1 a]
+ Actual type: Int -> [a] -> [a]
+ Relevant bindings include z :: [t1 t] (bound at mc25.hs:9:1)
+ In the expression: take
+ In a stmt of a monad comprehension: then group by x using take