Copyright | (C) 2021-2022 QBayLogic B.V. |
---|---|
License | BSD2 (see the file LICENSE) |
Maintainer | QBayLogic B.V. <devops@qbaylogic.com> |
Safe Haskell | None |
Language | Haskell2010 |
Random generation of vectors.
Documentation
genVec :: (MonadGen m, KnownNat n) => m a -> m (Vec n a) Source #
Generate a potentially empty vector, where each element is produced
using the supplied generator. For a non-empty vector, see genNonEmptyVec
.
genNonEmptyVec :: (MonadGen m, KnownNat n, 1 <= n) => m a -> m (Vec n a) Source #
Generate a non-empty vector, where each element is produced using the
supplied generator. For a potentially empty vector, see genVec
.