summaryrefslogtreecommitdiff
path: root/testsuite/tests/dependent/should_compile/T14749.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/dependent/should_compile/T14749.hs')
-rw-r--r--testsuite/tests/dependent/should_compile/T14749.hs9
1 files changed, 6 insertions, 3 deletions
diff --git a/testsuite/tests/dependent/should_compile/T14749.hs b/testsuite/tests/dependent/should_compile/T14749.hs
index bf3d5c488a..833f7d82c1 100644
--- a/testsuite/tests/dependent/should_compile/T14749.hs
+++ b/testsuite/tests/dependent/should_compile/T14749.hs
@@ -1,4 +1,5 @@
-{-# LANGUAGE GADTs, TypeOperators, DataKinds, TypeFamilies, PolyKinds, TypeFamilyDependencies #-}
+{-# LANGUAGE GADTs, TypeOperators, DataKinds, TypeFamilies, PolyKinds,
+ ExplicitForAll, TypeFamilyDependencies, StandaloneKindSignatures #-}
module T14749 where
@@ -14,11 +15,13 @@ type family IK (k :: KIND) = (res :: Type) where
IK STAR = Type
IK (a:>b) = IK a -> IK b
-type family I (t :: Ty k) = (res :: IK k) where
+type I :: Ty k -> IK k
+type family I t = res where
I TMaybe = Maybe
I (TApp f a) = (I f) (I a)
-data TyRep (k :: KIND) (t :: Ty k) where
+type TyRep :: forall (k :: KIND) -> Ty k -> Type
+data TyRep k t where
TyMaybe :: TyRep (STAR:>STAR) TMaybe
TyApp :: TyRep (a:>b) f -> TyRep a x -> TyRep b (TApp f x)