Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exports ToSourceIO
and FromSourceIO
for all IsStream
instances.
Synopsis
- class StreamlyToSourceIO m where
- streamlyToSourceIO :: IsStream t => t m a -> SourceIO a
Documentation
class StreamlyToSourceIO m where Source #
Helper class to implement
instance
for various monads.ToSourceIO
IsStream
streamlyToSourceIO :: IsStream t => t m a -> SourceIO a Source #
Instances
StreamlyToSourceIO IO Source # | |
Defined in Servant.Streamly | |
StreamlyToSourceIO (ResourceT IO) Source # | |
Defined in Servant.Streamly |
Orphan instances
(StreamlyToSourceIO m, IsStream t) => ToSourceIO a (t m a) Source # | |
toSourceIO :: t m a -> SourceIO a # | |
IsStream t => FromSourceIO a (t (ResourceT IO) a) Source # | |
fromSourceIO :: SourceIO a -> t (ResourceT IO) a # | |
IsStream t => FromSourceIO a (t IO a) Source # | |
fromSourceIO :: SourceIO a -> t IO a # |