servant-conduit-0.15: Servant Stream support for conduit.

Safe HaskellNone
LanguageHaskell2010

Servant.Conduit

Contents

Description

This module exports ToSourceIO and FromSourceIO for ConduitT instances.

Synopsis

Documentation

class ConduitToSourceIO m where Source #

Helper class to implement ToSourceIO ConduitT instance for various monads.

Methods

conduitToSourceIO :: ConduitT i o m () -> SourceIO o Source #

Instances
ConduitToSourceIO IO Source # 
Instance details

Defined in Servant.Conduit

m ~ IO => ConduitToSourceIO (ResourceT m) Source # 
Instance details

Defined in Servant.Conduit

Orphan instances

(ConduitToSourceIO m, r ~ ()) => ToSourceIO o (ConduitT i o m r) Source # 
Instance details

Methods

toSourceIO :: ConduitT i o m r -> SourceIO o #

(MonadIO m, r ~ ()) => FromSourceIO o (ConduitT i o m r) Source # 
Instance details

Methods

fromSourceIO :: SourceIO o -> ConduitT i o m r #