Add test for #11516
authorBen Gamari <ben@smart-cactus.org>
Sat, 6 Feb 2016 14:16:15 +0000 (15:16 +0100)
committerBen Gamari <ben@smart-cactus.org>
Sat, 6 Feb 2016 14:16:39 +0000 (15:16 +0100)
testsuite/tests/typecheck/should_compile/T11516.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T

diff --git a/testsuite/tests/typecheck/should_compile/T11516.hs b/testsuite/tests/typecheck/should_compile/T11516.hs
new file mode 100644 (file)
index 0000000..3b19a99
--- /dev/null
@@ -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
index b269f58..e4b1e41 100644 (file)
@@ -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, [''])