Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exports ToSourceIO
and FromSourceIO
for ConduitT
instances.
Synopsis
- class ConduitToSourceIO m where
- conduitToSourceIO :: ConduitT i o m () -> SourceIO o
Documentation
class ConduitToSourceIO m where Source #
Helper class to implement
instance
for various monads.ToSourceIO
ConduitT
conduitToSourceIO :: ConduitT i o m () -> SourceIO o Source #
Instances
ConduitToSourceIO IO Source # | |
Defined in Servant.Conduit | |
m ~ IO => ConduitToSourceIO (ResourceT m) Source # | |
Defined in Servant.Conduit |
Orphan instances
(ConduitToSourceIO m, r ~ ()) => ToSourceIO o (ConduitT i o m r) Source # | |
toSourceIO :: ConduitT i o m r -> SourceIO o # | |
(MonadIO m, r ~ ()) => FromSourceIO o (ConduitT i o m r) Source # | |
fromSourceIO :: SourceIO o -> ConduitT i o m r # |