diff options
-rw-r--r-- | testsuite/tests/polykinds/T10041.hs | 10 | ||||
-rw-r--r-- | testsuite/tests/polykinds/all.T | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T10041.hs b/testsuite/tests/polykinds/T10041.hs new file mode 100644 index 0000000000..920252f433 --- /dev/null +++ b/testsuite/tests/polykinds/T10041.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE PolyKinds, TypeFamilies, DataKinds #-} +{-# LANGUAGE TypeOperators, GADTs, InstanceSigs #-} + +module T10041 where + +data family Sing (a :: k) +data instance Sing (xs :: [k]) where + SNil :: Sing '[] + +class SingI (a :: ΔΈ) where
\ No newline at end of file diff --git a/testsuite/tests/polykinds/all.T b/testsuite/tests/polykinds/all.T index c86e317bf0..73213874e3 100644 --- a/testsuite/tests/polykinds/all.T +++ b/testsuite/tests/polykinds/all.T @@ -114,3 +114,5 @@ test('T9838', normal, multimod_compile, ['T9838.hs','-v0']) test('T9574', normal, compile_fail, ['']) test('T9833', normal, compile, ['']) test('T7908', normal, compile, ['']) +test('T10041', normal, compile, ['']) + |