summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail209.stderr
diff options
context:
space:
mode:
authorMax Bolingbroke <batterseapower@hotmail.com>2011-08-21 16:53:40 +0100
committerMax Bolingbroke <batterseapower@hotmail.com>2011-09-06 17:28:53 +0100
commit8b5a2b4345ee9ba74f1274e7ed06e504240676c3 (patch)
treed60ad79bdf457d326947e310e9616a76487612a7 /testsuite/tests/typecheck/should_fail/tcfail209.stderr
parent84cf6cdbe209d429f80c7362f06191b953f9dddc (diff)
downloadhaskell-8b5a2b4345ee9ba74f1274e7ed06e504240676c3.tar.gz
Test the ConstraintKind extension and related changes
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail209.stderr')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail209.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail209.stderr b/testsuite/tests/typecheck/should_fail/tcfail209.stderr
new file mode 100644
index 0000000000..964a10e125
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail209.stderr
@@ -0,0 +1,11 @@
+
+tcfail209.hs:5:1:
+ Illegal irreducible constraint Showish a
+ (Use -XConstraintKind to permit this)
+ In the type signature for `f': f :: Showish a => a -> a
+
+tcfail209.hs:8:8:
+ Predicate `Show a' used as a type
+ Expected kind `*', but `Show a' has kind `Constraint'
+ In the type signature for `g':
+ g :: ((Show a, Num a), Eq a) => a -> a