summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/mc22.stderr
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2013-04-22 12:56:09 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2013-04-22 13:00:57 +0100
commit0edc55b7f4fc3b2c07b47ea359542edfae40bb5a (patch)
treef88f0be1d33c5772fde887b49fd73820db40f287 /testsuite/tests/typecheck/should_fail/mc22.stderr
parent9bf2e77ede31f487b321d3f978c6e18a63739cd6 (diff)
downloadhaskell-0edc55b7f4fc3b2c07b47ea359542edfae40bb5a.tar.gz
Error message wibbles, following TcErrors refactoring
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/mc22.stderr')
-rw-r--r--testsuite/tests/typecheck/should_fail/mc22.stderr33
1 files changed, 22 insertions, 11 deletions
diff --git a/testsuite/tests/typecheck/should_fail/mc22.stderr b/testsuite/tests/typecheck/should_fail/mc22.stderr
index 7a4cc4e44b..3a149fdcba 100644
--- a/testsuite/tests/typecheck/should_fail/mc22.stderr
+++ b/testsuite/tests/typecheck/should_fail/mc22.stderr
@@ -1,11 +1,22 @@
-
-mc22.hs:10:26:
- Couldn't match type ‛a’ with ‛t a’
- ‛a’ is a rigid type variable bound by
- a type expected by the context: [a] -> [t a] at mc22.hs:10:9
- Expected type: [a] -> [t a]
- Actual type: [a] -> [a]
- Relevant bindings include foo :: [t [Char]] (bound at mc22.hs:8:1)
- In the return type of a call of ‛take’
- In the expression: take 5
- In a stmt of a monad comprehension: then group using take 5
+
+mc22.hs:10:9:
+ No instance for (Functor t) arising from a use of ‛fmap’
+ Possible fix:
+ add (Functor t) to the context of
+ a type expected by the context: (a -> b) -> t a -> t b
+ or the inferred type of foo :: [t [Char]]
+ In the expression: fmap
+ In a stmt of a monad comprehension: then group using take 5
+ In the expression:
+ [x + 1 | x <- ["Hello", "World"], then group using take 5]
+
+mc22.hs:10:26:
+ Couldn't match type ‛a’ with ‛t a’
+ ‛a’ is a rigid type variable bound by
+ a type expected by the context: [a] -> [t a] at mc22.hs:10:9
+ Expected type: [a] -> [t a]
+ Actual type: [a] -> [a]
+ Relevant bindings include foo :: [t [Char]] (bound at mc22.hs:8:1)
+ In the return type of a call of ‛take’
+ In the expression: take 5
+ In a stmt of a monad comprehension: then group using take 5