summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/T10134a.hs
blob: 779514fe2655808bca24fb07bebee6966b8dfae4 (plain)
1
2
3
4
5
6
7
8
9
10
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