diff options
Diffstat (limited to 'testsuite/tests/pmcheck/should_compile/T11984.hs')
-rw-r--r-- | testsuite/tests/pmcheck/should_compile/T11984.hs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/tests/pmcheck/should_compile/T11984.hs b/testsuite/tests/pmcheck/should_compile/T11984.hs new file mode 100644 index 0000000000..b655df0efe --- /dev/null +++ b/testsuite/tests/pmcheck/should_compile/T11984.hs @@ -0,0 +1,23 @@ +{-# LANGUAGE PolyKinds, TypeOperators, DataKinds, TypeFamilies, GADTs #-} + +module T11984 where + +data family Sing (a :: k) + +data Schema = Sch [Bool] + +data instance Sing (x :: Schema) where + SSch :: Sing x -> Sing ('Sch x) + +data instance Sing (x :: [k]) where + SNil :: Sing '[] + SCons :: Sing a -> Sing b -> Sing (a ': b) + +data G a where + GCons :: G ('Sch (a ': b)) + +eval :: G s -> Sing s -> () +eval GCons s = + case s of + -- SSch SNil -> undefined + SSch (SCons _ _) -> undefined |