Hoogle Search

Within LTS Haskell 24.10 (ghc-9.10.2)

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

  1. newtype ZipConduit i o (m :: Type -> Type) r

    conduit Data.Conduit.Internal

    Provides an alternative Applicative instance for ConduitT. In this instance, every incoming value is provided to all ConduitTs, and output is coalesced together. Leftovers from individual ConduitTs will be used within that component, and then discarded at the end of their computation. Output and finalizers will both be handled in a left-biased manner. As an example, take the following program:

    main :: IO ()
    main = do
    let src = mapM_ yield [1..3 :: Int]
    conduit1 = CL.map (+1)
    conduit2 = CL.concatMap (replicate 2)
    conduit = getZipConduit $ ZipConduit conduit1 <* ZipConduit conduit2
    sink = CL.mapM_ print
    src $$ conduit =$ sink
    
    It will produce the output: 2, 1, 1, 3, 2, 2, 4, 3, 3 Since 1.0.17

  2. ZipConduit :: ConduitT i o m r -> ZipConduit i o (m :: Type -> Type) r

    conduit Data.Conduit.Internal

    No documentation available.

  3. connectResumeConduit :: forall (m :: Type -> Type) i o r . Monad m => SealedConduitT i o m () -> ConduitT o Void m r -> ConduitT i Void m (SealedConduitT i o m (), r)

    conduit Data.Conduit.Internal

    Connect a Conduit to a sink and return the output of the sink together with a new Conduit. Since 1.0.17

  4. getZipConduit :: ZipConduit i o (m :: Type -> Type) r -> ConduitT i o m r

    conduit Data.Conduit.Internal

    No documentation available.

  5. runConduit :: Monad m => ConduitT () Void m r -> m r

    conduit Data.Conduit.Internal

    Run a pipeline until processing completes. Since 1.2.1

  6. runConduitPure :: ConduitT () Void Identity r -> r

    conduit Data.Conduit.Internal

    Run a pure pipeline until processing completes, i.e. a pipeline with Identity as the base monad. This is equivalient to runIdentity . runConduit.

  7. runConduitRes :: MonadUnliftIO m => ConduitT () Void (ResourceT m) r -> m r

    conduit Data.Conduit.Internal

    Run a pipeline which acquires resources with ResourceT, and then run the ResourceT transformer. This is equivalent to runResourceT . runConduit.

  8. sealConduitT :: forall i o (m :: Type -> Type) r . ConduitT i o m r -> SealedConduitT i o m r

    conduit Data.Conduit.Internal

    No documentation available.

  9. sequenceConduits :: forall f (m :: Type -> Type) i o r . (Traversable f, Monad m) => f (ConduitT i o m r) -> ConduitT i o m (f r)

    conduit Data.Conduit.Internal

    Provide identical input to all of the Conduits and combine their outputs into a single stream. Implemented on top of ZipConduit, see that data type for more details. Since 1.0.17

  10. unConduitT :: ConduitT i o (m :: Type -> Type) r -> forall b . () => (r -> Pipe i i o () m b) -> Pipe i i o () m b

    conduit Data.Conduit.Internal

    No documentation available.

Page 7 of many | Previous | Next