summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/T10134a.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/T10134a.hs')
-rw-r--r--tests/examples/ghc86/T10134a.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/examples/ghc86/T10134a.hs b/tests/examples/ghc86/T10134a.hs
new file mode 100644
index 0000000..779514f
--- /dev/null
+++ b/tests/examples/ghc86/T10134a.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE KindSignatures #-}
+{-# LANGUAGE GADTs #-}
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE TypeOperators #-}
+module T10134a where
+
+import GHC.TypeLits
+
+data Vec :: Nat -> Type -> Type where
+ Nil :: Vec 0 a
+ (:>) :: a -> Vec n a -> Vec (n + 1) a