[commit: ghc] master: Add test for #11516 (b49d509)

git at git.haskell.org git at git.haskell.org
Sat Feb 6 16:09:28 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/b49d509b336cb74f506555eada8830d754c4b7ba/ghc

>---------------------------------------------------------------

commit b49d509b336cb74f506555eada8830d754c4b7ba
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sat Feb 6 15:16:15 2016 +0100

    Add test for #11516


>---------------------------------------------------------------

b49d509b336cb74f506555eada8830d754c4b7ba
 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