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.Fold Apply a pure function on the latest and the oldest element of the window.
>>> windowRollingMap f = Fold.windowRollingMapM (\x y -> return $ f x y)
windowRollingMapM :: Monad m => (Maybe a -> a -> m (Maybe b)) -> Fold m (a, Maybe a) (Maybe b)streamly-core Streamly.Internal.Data.Fold Apply an effectful function on the latest and the oldest element of the window.
-
streamly-core Streamly.Internal.Data.Fold.Chunked Applies a fold on the input stream, generates the next fold from the output of the previously applied fold and then applies that fold. Pre-release
rmapM :: Monad m => (b -> m c) -> ChunkFold m a b -> ChunkFold m a cstreamly-core Streamly.Internal.Data.Fold.Chunked Map a monadic function on the output of a fold. Pre-release
module Streamly.Internal.Data.
IsMap No documentation available.
class
IsMap (f :: Type -> Type)streamly-core Streamly.Internal.Data.IsMap No documentation available.
bimapOverrideCount :: Int -> (s -> s1) -> (b -> b1) -> Step s b -> Step s1 b1streamly-core Streamly.Internal.Data.Parser Bimap discarding the count, and using the supplied count instead.
-
streamly-core Streamly.Internal.Data.Parser Map a Parser returning function on the result of a Parser. ALL THE CAVEATS IN splitWith APPLY HERE AS WELL. Pre-release
lmap :: forall a b (m :: Type -> Type) r . (a -> b) -> Parser b m r -> Parser a m rstreamly-core Streamly.Internal.Data.Parser lmap f parser maps the function f on the input of the parser.
>>> Stream.parse (Parser.lmap (\x -> x * x) (Parser.fromFold Fold.sum)) (Stream.enumerateFromTo 1 100) Right 338350
lmap = Parser.lmapM return
lmapM :: Monad m => (a -> m b) -> Parser b m r -> Parser a m rstreamly-core Streamly.Internal.Data.Parser lmapM f parser maps the monadic function f on the input of the parser.