[commit: ghc] wip/rae: Test #9201 in typecheck/should_fail/T9201 (91304b9)
git at git.haskell.org
git at git.haskell.org
Tue Nov 18 20:22:12 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/rae
Link : http://ghc.haskell.org/trac/ghc/changeset/91304b94389a6b52fc700f2c8170866369098e3f/ghc
>---------------------------------------------------------------
commit 91304b94389a6b52fc700f2c8170866369098e3f
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Tue Nov 18 13:19:42 2014 -0500
Test #9201 in typecheck/should_fail/T9201
>---------------------------------------------------------------
91304b94389a6b52fc700f2c8170866369098e3f
testsuite/tests/typecheck/should_fail/T9201.hs | 6 ++++++
testsuite/tests/typecheck/should_fail/T9201.stderr | 6 ++++++
testsuite/tests/typecheck/should_fail/all.T | 1 +
3 files changed, 13 insertions(+)
diff --git a/testsuite/tests/typecheck/should_fail/T9201.hs b/testsuite/tests/typecheck/should_fail/T9201.hs
new file mode 100644
index 0000000..7702fa3
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T9201.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE PolyKinds, FunctionalDependencies, MultiParamTypeClasses #-}
+
+module T9201 where
+
+class MonoidalCCC (f :: x -> y) (d :: y -> y -> *) | f -> d where
+ ret :: d a (f a)
diff --git a/testsuite/tests/typecheck/should_fail/T9201.stderr b/testsuite/tests/typecheck/should_fail/T9201.stderr
new file mode 100644
index 0000000..44e338a
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T9201.stderr
@@ -0,0 +1,6 @@
+
+T9201.hs:6:17:
+ The first argument of ‘f’ should have kind ‘x1’,
+ but ‘a’ has kind ‘y1’
+ In the type ‘d a (f a)’
+ In the class declaration for ‘MonoidalCCC’
diff --git a/testsuite/tests/typecheck/should_fail/all.T b/testsuite/tests/typecheck/should_fail/all.T
index b6b5572..14df71e 100644
--- a/testsuite/tests/typecheck/should_fail/all.T
+++ b/testsuite/tests/typecheck/should_fail/all.T
@@ -343,3 +343,4 @@ test('T9634', normal, compile_fail, [''])
test('T9739', normal, compile_fail, [''])
test('T9774', normal, compile_fail, [''])
test('T9318', normal, compile_fail, [''])
+test('T9201', normal, compile_fail, [''])
More information about the ghc-commits
mailing list