diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-02-06 15:16:15 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-02-06 15:16:39 +0100 |
commit | b49d509b336cb74f506555eada8830d754c4b7ba (patch) | |
tree | d0c212d1564065f1d197180d0a8ceb4ccc99e72d | |
parent | 38af3d1db2889423a12a2232b9d52181bba23d75 (diff) | |
download | haskell-b49d509b336cb74f506555eada8830d754c4b7ba.tar.gz |
Add test for #11516
-rw-r--r-- | testsuite/tests/typecheck/should_compile/T11516.hs | 11 | ||||
-rw-r--r-- | testsuite/tests/typecheck/should_compile/all.T | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T11516.hs b/testsuite/tests/typecheck/should_compile/T11516.hs new file mode 100644 index 0000000000..3b19a997f9 --- /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 b269f58861..e4b1e41b8e 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, ['']) |