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