Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
streamly-core Streamly.Internal.Data.Parser Better performance concatMap for non-failing parsers. Does not work correctly for parsers that can fail. ALL THE CAVEATS IN splitWith APPLY HERE AS WELL.
rmapM :: Monad m => (b -> m c) -> Parser a m b -> Parser a m cstreamly-core Streamly.Internal.Data.Parser rmapM f parser maps the monadic function f on the output of the parser.
>>> rmap = fmap
lmap :: forall a (m :: Type -> Type) b . (a -> a) -> Producer m a b -> Producer m a bstreamly-core Streamly.Internal.Data.Producer Map the producer input to another value of the same type. Pre-release
lmapM :: Monad m => (a -> m b) -> Refold m c b r -> Refold m c a rstreamly-core Streamly.Internal.Data.Refold.Type lmapM f fold maps the monadic function f on the input of the fold. Internal
rmapM :: Monad m => (b -> m c) -> Refold m x a b -> Refold m x a cstreamly-core Streamly.Internal.Data.Refold.Type Map a monadic function on the output of a fold. Internal
ConcatMapUInner :: o -> i -> ConcatMapUState o istreamly-core Streamly.Internal.Data.Stream No documentation available.
ConcatMapUOuter :: o -> ConcatMapUState o istreamly-core Streamly.Internal.Data.Stream No documentation available.
-
streamly-core Streamly.Internal.Data.Stream No documentation available.
-
streamly-core Streamly.Internal.Data.Stream Map a stream producing function on each element of the stream and then flatten the results into a single stream.
>>> concatMap f = Stream.concatMapM (return . f) >>> concatMap f = Stream.concat . fmap f >>> concatMap f = Stream.unfoldMany (Unfold.lmap f Unfold.fromStream)
See unfoldMany for a fusible alternative. -
streamly-core Streamly.Internal.Data.Stream Map a stream producing function on each element of the stream and then flatten the results into a single stream.
>>> concatMap f = Stream.concatMapM (return . f) >>> concatMap f = Stream.concat . fmap f >>> concatMap f = Stream.unfoldMany (Unfold.lmap f Unfold.fromStream)
See unfoldMany for a fusible alternative.