| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Data.Type.Witness.Specific.FixedList
Documentation
data FixedList (n :: PeanoNat) a where Source #
Constructors
| NilFixedList :: forall a. FixedList 'Zero a | |
| ConsFixedList :: forall a (n1 :: PeanoNat). a -> FixedList n1 a -> FixedList ('Succ n1) a |
Instances
fixedListLength :: forall (n :: PeanoNat) a. FixedList n a -> PeanoNatType n Source #
fixedListGenerate :: forall m (n :: PeanoNat) a. Applicative m => PeanoNatType n -> m a -> m (FixedList n a) Source #
fixedFromList :: [a] -> (forall (n :: PeanoNat). PeanoNatType n -> FixedList n a -> r) -> r Source #
fixedListArrowSequence_ :: forall arrow (n :: PeanoNat) a. Arrow arrow => FixedList n (arrow a ()) -> arrow (FixedList n a) () Source #