HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulefoundation-0.0.30Haskell2010

Foundation.Conduit

  • 3 types
  • 17 values
  • Packagefoundation-0.0.30
  • Exports20
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceInternal.hs
newtypenewtype Conduit input output (monad :: Type -> Type) result
#

A component of a conduit pipeline, which takes a stream of input, produces a stream of output, performs actions in the underlying monad, and produces a value of result when no more output data is available.

Instances10MonadTrans, Monad, Functor, Applicative, MonadIO, MonadFailure, …
newtypenewtype ResourceT (m :: Type -> Type) a
#
Instances9MonadTrans, Monad, Functor, Applicative, MonadIO, MonadResource, …
valueyieldOr
  1. :: o
  2. -> m ()

    finalizer

  3. -> Conduit i o m ()
#

Same as yield, but additionally takes a finalizer to be run if the downstream component terminates.

valueleftover :: i -> Conduit i o m ()
#

Provide leftover input to be consumed by the next component in the current monadic binding.

valuefuse :: Monad m => Conduit a b m () -> Conduit b c m r -> Conduit a c m r
#

Send the output of the first Conduit component to the second Conduit component.