packages feed

singletons-base-3.2: tests/compile-and-dump/Singletons/Star.hs

module Singletons.Star where

import Data.Singletons.Decide
import Data.Singletons.Base.CustomStar
import Prelude.Singletons
import Singletons.Nat
import Data.Kind (Type)

data Vec :: Type -> Nat -> Type where
  VNil :: Vec a Zero
  VCons :: a -> Vec a n -> Vec a (Succ n)

$(singletonStar [''Nat, ''Int, ''String, ''Maybe, ''Vec])