summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/DumpParsedAst.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_compile/DumpParsedAst.hs')
-rw-r--r--testsuite/tests/parser/should_compile/DumpParsedAst.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/tests/parser/should_compile/DumpParsedAst.hs b/testsuite/tests/parser/should_compile/DumpParsedAst.hs
index f2bf433324..cedc3537de 100644
--- a/testsuite/tests/parser/should_compile/DumpParsedAst.hs
+++ b/testsuite/tests/parser/should_compile/DumpParsedAst.hs
@@ -1,11 +1,12 @@
-{-# LANGUAGE DataKinds, PolyKinds, TypeOperators, TypeFamilies
- , TypeApplications, TypeInType #-}
+{-# LANGUAGE DataKinds, PolyKinds, TypeOperators, TypeFamilies,
+ TypeApplications, StandaloneKindSignatures #-}
module DumpParsedAst where
import Data.Kind
data Peano = Zero | Succ Peano
+type Length :: [k] -> Peano
type family Length (as :: [k]) :: Peano where
Length (a : as) = Succ (Length as)
Length '[] = Zero
@@ -13,6 +14,7 @@ type family Length (as :: [k]) :: Peano where
-- vis kind app
data T f (a :: k) = MkT (f a)
+type F1 :: k -> (k -> Type) -> Type
type family F1 (a :: k) (f :: k -> Type) :: Type where
F1 @Peano a f = T @Peano f a