summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/Session.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt/Session.hs')
-rw-r--r--testsuite/tests/gadt/Session.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/tests/gadt/Session.hs b/testsuite/tests/gadt/Session.hs
index 4403b6f869..2a9b3da6ef 100644
--- a/testsuite/tests/gadt/Session.hs
+++ b/testsuite/tests/gadt/Session.hs
@@ -4,6 +4,8 @@
module Main where
+import Data.Kind (Type)
+
data Zero = Zero
deriving (Show)
@@ -16,7 +18,7 @@ class TyNum a where
instance TyNum Zero where
instance (TyNum p) => TyNum (Succ p) where
-data List :: * -> * -> * where
+data List :: Type -> Type -> Type where
Nil :: List a Zero
Cons :: (TyNum p) => a -> List a p -> List a (Succ p)