servant-pipes-0.15.2: Servant Stream support for pipes

Safe HaskellNone
LanguageHaskell2010

Servant.Pipes

Contents

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
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

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

Methods

toSourceIO :: ListT m a -> SourceIO a #

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

Methods

fromSourceIO :: SourceIO a -> ListT m a #

(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 #

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

Methods

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