summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/karl2.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt/karl2.hs')
-rw-r--r--testsuite/tests/gadt/karl2.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/tests/gadt/karl2.hs b/testsuite/tests/gadt/karl2.hs
index aa96d689d7..1f46df37ee 100644
--- a/testsuite/tests/gadt/karl2.hs
+++ b/testsuite/tests/gadt/karl2.hs
@@ -5,11 +5,13 @@ module Expr0 where
-- See Trac #301
-- This one *does* use GADTs (Fct)
-data Expr :: * -> * where
+import Data.Kind (Type)
+
+data Expr :: Type -> Type where
Const :: Show a => a -> Expr a
Apply :: Fct a b -> Expr a -> Expr b
-data Fct :: * -> * -> * where
+data Fct :: Type -> Type -> Type where
Succ :: Fct Int Int
EqZero :: Fct Int Bool
Add :: Fct Int (Int -> Int)