Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapM_CE :: (Monad m, MonoFoldable mono) => (Element mono -> m ()) -> ConduitT mono o m ()conduit Conduit Apply the action to all elements in the chunked stream. Note: the same caveat as with mapM_C applies. If you don't want to consume the values, you can use iterM:
iterM (omapM_ f)
mapWhileC :: forall (m :: Type -> Type) a b . Monad m => (a -> Maybe b) -> ConduitT a b m ()conduit Conduit Map values as long as the result is Just.
-
conduit Data.Conduit Apply a function to all the input values of a ConduitT. Since 0.5.0
-
conduit Data.Conduit Apply a monadic action to all the input values of a ConduitT. Since 1.3.2
-
conduit Data.Conduit Apply a function to all the output values of a ConduitT. This mimics the behavior of fmap for a Source and Conduit in pre-0.4 days. It can also be simulated by fusing with the map conduit from Data.Conduit.List. Since 0.4.1
-
conduit Data.Conduit Same as mapOutput, but use a function that returns Maybe values. Since 0.5.0
-
conduit Data.Conduit.Combinators Consume a source with a strict accumulator, in a way piecewise defined by a controlling stream. The latter will be evaluated until it terminates.
>>> let f a s = liftM (:s) $ mapC (*a) =$ CL.take a >>> reverse $ runIdentity $ yieldMany [0..3] $$ mapAccumS f [] (yieldMany [1..]) [[],[1],[4,6],[12,15,18]] :: [[Int]]
-
conduit Data.Conduit.Combinators mapWhile with a break condition dependent on a strict accumulator. Equivalently, mapAccum as long as the result is Right. Instead of producing a leftover, the breaking input determines the resulting accumulator via Left. Subject to fusion
mapAccumWhileM :: Monad m => (a -> s -> m (Either s (s, b))) -> s -> ConduitT a b m sconduit Data.Conduit.Combinators Monadic mapAccumWhile. Subject to fusion
-
conduit Data.Conduit.Combinators Apply a transformation to all elements in a chunked stream. Subject to fusion