| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Servant.Streamly
Contents
Description
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
Methods
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 # | |
Methods toSourceIO :: t m a -> SourceIO a # | |
| IsStream t => FromSourceIO a (t (ResourceT IO) a) Source # | |
Methods fromSourceIO :: SourceIO a -> t (ResourceT IO) a # | |
| IsStream t => FromSourceIO a (t IO a) Source # | |
Methods fromSourceIO :: SourceIO a -> t IO a # | |