hw-prim-0.6.3.1: 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.

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

forceM :: (Monad m, NFData a) => m a -> m a Source #