[commit: ghc] ghc-8.0: Add test for #11516 (2c44209)
git at git.haskell.org
git at git.haskell.org
Thu Feb 11 15:29:50 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-8.0
Link : http://ghc.haskell.org/trac/ghc/changeset/2c44209199e67e15055de55d69d4052a554b2957/ghc
>---------------------------------------------------------------
commit 2c44209199e67e15055de55d69d4052a554b2957
Author: Ben Gamari <ben at smart-cactus.org>
Date: Sat Feb 6 15:16:15 2016 +0100
Add test for #11516
(cherry picked from commit b49d509b336cb74f506555eada8830d754c4b7ba)
>---------------------------------------------------------------
2c44209199e67e15055de55d69d4052a554b2957
testsuite/tests/typecheck/should_compile/T11516.hs | 11 +++++++++++
testsuite/tests/typecheck/should_compile/all.T | 1 +
2 files changed, 12 insertions(+)
diff --git a/testsuite/tests/typecheck/should_compile/T11516.hs b/testsuite/tests/typecheck/should_compile/T11516.hs
new file mode 100644
index 0000000..3b19a99
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T11516.hs
@@ -0,0 +1,11 @@
+{-# language PolyKinds #-}
+{-# language FlexibleContexts #-}
+{-# language ConstraintKinds #-}
+{-# language FlexibleInstances #-}
+{-# language FunctionalDependencies #-}
+
+import GHC.Exts (Constraint)
+
+class Ríki (p :: i -> i -> *)
+class (Ríki p) => Varpi p q f | f -> p q
+instance Varpi () () f => Varpi (->) (->) (Either f) where
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index b269f58..e4b1e41 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -502,4 +502,5 @@ test('RebindHR', normal, compile, [''])
test('RebindNegate', normal, compile, [''])
test('T11397', normal, compile, [''])
test('T11458', normal, compile, [''])
+test('T11516', expect_broken(11516), compile, [''])
test('T11524', normal, compile, [''])
More information about the ghc-commits
mailing list