summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail208.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail208.stderr')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail208.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail208.stderr b/testsuite/tests/typecheck/should_fail/tcfail208.stderr
new file mode 100644
index 0000000000..64200a696d
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail208.stderr
@@ -0,0 +1,13 @@
+
+tcfail208.hs:4:19:
+ Could not deduce (Eq (m a)) arising from a use of `=='
+ from the context (Monad m, Eq a)
+ bound by the type signature for
+ f :: (Monad m, Eq a) => a -> m a -> Bool
+ at tcfail208.hs:4:1-23
+ Possible fix:
+ add (Eq (m a)) to the context of
+ the type signature for f :: (Monad m, Eq a) => a -> m a -> Bool
+ or add an instance declaration for (Eq (m a))
+ In the expression: (return x == y)
+ In an equation for `f': f x y = (return x == y)