Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. mapAccumS :: forall (m :: Type -> Type) a s b . Monad m => (a -> s -> ConduitT b Void m s) -> s -> ConduitT () b m () -> ConduitT a Void m s

    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]]
    

  2. mapAccumWhile :: forall (m :: Type -> Type) a s b . Monad m => (a -> s -> Either s (s, b)) -> s -> ConduitT a b m s

    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

  3. mapAccumWhileM :: Monad m => (a -> s -> m (Either s (s, b))) -> s -> ConduitT a b m s

    conduit Data.Conduit.Combinators

    Monadic mapAccumWhile. Subject to fusion

  4. mapE :: forall (m :: Type -> Type) f a b . (Monad m, Functor f) => (a -> b) -> ConduitT (f a) (f b) m ()

    conduit Data.Conduit.Combinators

    Apply a transformation to all elements in a chunked stream. Subject to fusion

  5. mapM :: Monad m => (a -> m b) -> ConduitT a b m ()

    conduit Data.Conduit.Combinators

    Apply a monadic transformation to all values in a stream. If you do not need the transformed values, and instead just want the monadic side-effects of running the action, see mapM_. Subject to fusion

  6. mapME :: (Monad m, Traversable f) => (a -> m b) -> ConduitT (f a) (f b) m ()

    conduit Data.Conduit.Combinators

    Apply a monadic transformation to all elements in a chunked stream. Subject to fusion

  7. mapM_ :: Monad m => (a -> m ()) -> ConduitT a o m ()

    conduit Data.Conduit.Combinators

    Apply the action to all values in the stream. Note: if you want to pass the values instead of consuming them, use iterM instead. Subject to fusion

  8. mapM_E :: (Monad m, MonoFoldable mono) => (Element mono -> m ()) -> ConduitT mono o m ()

    conduit Data.Conduit.Combinators

    Apply the action to all elements in the chunked stream. Note: the same caveat as with mapM_ applies. If you don't want to consume the values, you can use iterM:

    iterM (omapM_ f)
    
    Subject to fusion

  9. mapWhile :: forall (m :: Type -> Type) a b . Monad m => (a -> Maybe b) -> ConduitT a b m ()

    conduit Data.Conduit.Combinators

    Map values as long as the result is Just.

  10. mapAccumWhileMS :: Monad m => (a -> s -> m (Either s (s, b))) -> s -> StreamConduitT a b m s

    conduit Data.Conduit.Combinators.Stream

    No documentation available.

Page 77 of many | Previous | Next