summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/T10321.hs
blob: 2973e728aef1f0863bbaef71bb91124298f2ffa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 :>