hw-prim-0.6.2.35: Primitive functions and data types

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Control.Monad.Lazy

Synopsis

Documentation

interleaveSequenceM :: MonadUnliftIO m => [m a] -> m [a] Source #

interleaveUnfoldrM :: MonadUnliftIO m => (b -> m (Maybe (a, b))) -> b -> m [a] Source #

Generates a lazy list of values that are produced by a given monadic function.

This function is intended to be like the "standard" unfoldrM except that the list is generated lazily.

interleaveTraverseM :: MonadUnliftIO m => (a -> m b) -> [a] -> m [b] Source #

Traverses the function over the list and produces a lazy list in a monadic context.

It is intended to be like the "standard" traverse except that the list is generated lazily.