Hoogle Search
Within LTS Haskell 24.26 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lmapM :: Monad m => (a -> m b) -> Fold m b r -> Fold m a rstreamly-core Streamly.Data.Fold lmapM f fold maps the monadic function f on the input of the fold.
rmapM :: Monad m => (b -> m c) -> Fold m a b -> Fold m a cstreamly-core Streamly.Data.Fold Map a monadic function on the output of a fold.
lmapM :: Monad m => (a -> m b) -> Parser b m r -> Parser a m rstreamly-core Streamly.Data.Parser lmapM f parser maps the monadic function f on the input of the parser.
rmapM :: Monad m => (b -> m c) -> Parser a m b -> Parser a m cstreamly-core Streamly.Data.Parser rmapM f parser maps the monadic function f on the output of the parser.
>>> rmap = fmap
concatMapM :: Monad m => (a -> m (Stream m b)) -> Stream m a -> Stream m bstreamly-core Streamly.Data.Stream Map a stream producing monadic function on each element of the stream and then flatten the results into a single stream. Since the stream generation function is monadic, unlike concatMap, it can produce an effect at the beginning of each iteration of the inner loop. See unfoldMany for a fusible alternative.
lmapM :: Monad m => (a -> m c) -> Unfold m c b -> Unfold m a bstreamly-core Streamly.Data.Unfold Map an action on the input argument of the Unfold.
lmapM f = Unfold.many (Unfold.functionM f)
drainMapM :: Monad m => (a -> m b) -> Fold m a ()streamly-core Streamly.Internal.Data.Fold Definitions:
>>> drainMapM f = Fold.lmapM f Fold.drain >>> drainMapM f = Fold.foldMapM (void . f)
Drain all input after passing it through a monadic function. This is the dual of mapM_ on stream producers.foldMapM :: (Monad m, Monoid b) => (a -> m b) -> Fold m a bstreamly-core Streamly.Internal.Data.Fold Definition:
>>> foldMapM f = Fold.lmapM f Fold.mconcat
Make a fold from a monadic function that folds the output of the function using mappend and mempty.>>> sum = Fold.foldMapM (return . Data.Monoid.Sum) >>> Stream.fold sum $ Stream.enumerateFromTo 1 10 Sum {getSum = 55}lmapM :: Monad m => (a -> m b) -> Fold m b r -> Fold m a rstreamly-core Streamly.Internal.Data.Fold lmapM f fold maps the monadic function f on the input of the fold.
rmapM :: Monad m => (b -> m c) -> Fold m a b -> Fold m a cstreamly-core Streamly.Internal.Data.Fold Map a monadic function on the output of a fold.