bdcs-0.1.0: Tools for managing a content store of software packages

Copyright(c) 2016-2017 Red Hat Inc.
LicenseLGPL
Maintainerhttps://github.com/weldr
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

BDCS.Utils.Conduit

Description

Conduit related utility functions

Synopsis

Documentation

awaitWith :: Monad m => (i -> Conduit i m o) -> Conduit i m o Source #

Wait for a single value and then call fn on it.

identityC :: Monad m => Conduit a m a Source #

A conduit that takes its input and returns that as its output.

sourceInputStream :: (MonadResource m, IsInputStream i) => i -> Producer m ByteString Source #

Convert a IsInputStream to a conduit source