Module
Control.Monad.Gen.Common
- Package
- purescript-gen
- Repository
- purescript/purescript-gen
#genIdentity Source
genIdentity :: forall a m. Functor m => m a -> m (Identity a)
Creates a generator that outputs Identity
values, choosing a value from
another generator for the inner value.
#genNonEmpty Source
genNonEmpty :: forall f a m. MonadRec m => MonadGen m => Unfoldable f => m a -> m (NonEmpty f a)
Creates a generator that outputs NonEmpty
values, choosing values from a
generator for each of the items.
The size of the value will be determined by the current size state
for the generator. To generate a value of a particular size, use the
resize
function from the MonadGen
class first.