[commit: ghc] master: Test #9201 in typecheck/should_fail/T9201 (8fea2ac)
git at git.haskell.org
git at git.haskell.org
Thu Nov 20 21:41:39 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/8fea2acde696f9960ffcf84f512235bbf4b481d6/ghc
>---------------------------------------------------------------
commit 8fea2acde696f9960ffcf84f512235bbf4b481d6
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Tue Nov 18 13:19:42 2014 -0500
Test #9201 in typecheck/should_fail/T9201
>---------------------------------------------------------------
8fea2acde696f9960ffcf84f512235bbf4b481d6
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