servant-pipes-0.16: Servant Stream support for pipes
Safe HaskellSafe-Inferred
LanguageHaskell2010

Servant.Pipes

Description

This module exports ToSourceIO and FromSourceIO for Proxy and SafeT instances.

Synopsis

Documentation

class PipesToSourceIO m where Source #

Helper class to implement ToSourceIO Proxy instance for various monads.

Methods

pipesToSourceIO :: Proxy X () () b m () -> SourceIO b Source #

Instances

Instances details
PipesToSourceIO IO Source # 
Instance details

Defined in Servant.Pipes

Methods

pipesToSourceIO :: Proxy X () () b IO () -> SourceIO b Source #

m ~ IO => PipesToSourceIO (SafeT m) Source # 
Instance details

Defined in Servant.Pipes

Methods

pipesToSourceIO :: Proxy X () () b (SafeT m) () -> SourceIO b Source #

Orphan instances

MonadIO m => FromSourceIO a (ListT m a) Source # 
Instance details

Methods

fromSourceIO :: SourceIO a -> IO (ListT m a) #

PipesToSourceIO m => ToSourceIO a (ListT m a) Source # 
Instance details

Methods

toSourceIO :: ListT m a -> SourceIO a #

(MonadIO m, a' ~ X, a ~ (), b' ~ (), r ~ ()) => FromSourceIO b (Proxy a' a b' b m r) Source # 
Instance details

Methods

fromSourceIO :: SourceIO b -> IO (Proxy a' a b' b m r) #

(PipesToSourceIO m, a' ~ X, a ~ (), b' ~ (), r ~ ()) => ToSourceIO b (Proxy a' a b' b m r) Source # 
Instance details

Methods

toSourceIO :: Proxy a' a b' b m r -> SourceIO b #