servant-streamly-0.1.0.0: Servant Stream support for streamly.
Safe HaskellNone
LanguageHaskell2010

Servant.Streamly

Description

This module exports ToSourceIO and FromSourceIO for all IsStream instances.

Synopsis

Documentation

class StreamlyToSourceIO m where Source #

Helper class to implement ToSourceIO IsStream instance for various monads.

Methods

streamlyToSourceIO :: IsStream t => t m a -> SourceIO a Source #

Instances

Instances details
StreamlyToSourceIO IO Source # 
Instance details

Defined in Servant.Streamly

Methods

streamlyToSourceIO :: IsStream t => t IO a -> SourceIO a Source #

StreamlyToSourceIO (ResourceT IO) Source # 
Instance details

Defined in Servant.Streamly

Orphan instances

(StreamlyToSourceIO m, IsStream t) => ToSourceIO a (t m a) Source # 
Instance details

Methods

toSourceIO :: t m a -> SourceIO a #

IsStream t => FromSourceIO a (t (ResourceT IO) a) Source # 
Instance details

Methods

fromSourceIO :: SourceIO a -> t (ResourceT IO) a #

IsStream t => FromSourceIO a (t IO a) Source # 
Instance details

Methods

fromSourceIO :: SourceIO a -> t IO a #