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.
newtype
ZipConduit i o (m :: Type -> Type) rconduit 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.17ZipConduit :: ConduitT i o m r -> ZipConduit i o (m :: Type -> Type) rconduit Data.Conduit.Internal No documentation available.
-
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
getZipConduit :: ZipConduit i o (m :: Type -> Type) r -> ConduitT i o m rconduit Data.Conduit.Internal No documentation available.
runConduit :: Monad m => ConduitT () Void m r -> m rconduit Data.Conduit.Internal Run a pipeline until processing completes. Since 1.2.1
runConduitPure :: ConduitT () Void Identity r -> rconduit 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.
runConduitRes :: MonadUnliftIO m => ConduitT () Void (ResourceT m) r -> m rconduit Data.Conduit.Internal Run a pipeline which acquires resources with ResourceT, and then run the ResourceT transformer. This is equivalent to runResourceT . runConduit.
sealConduitT :: forall i o (m :: Type -> Type) r . ConduitT i o m r -> SealedConduitT i o m rconduit Data.Conduit.Internal No documentation available.
-
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
-
conduit Data.Conduit.Internal No documentation available.