Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module exports ToSourceIO
and FromSourceIO
for Proxy
and SafeT
instances.
Synopsis
- class PipesToSourceIO m where
- pipesToSourceIO :: Proxy X () () b m () -> SourceIO b
Documentation
class PipesToSourceIO m where Source #
Helper class to implement
instance
for various monads.ToSourceIO
Proxy
Instances
PipesToSourceIO IO Source # | |
Defined in Servant.Pipes | |
m ~ IO => PipesToSourceIO (SafeT m) Source # | |
Defined in Servant.Pipes |
Orphan instances
MonadIO m => FromSourceIO a (ListT m a) Source # | |
fromSourceIO :: SourceIO a -> ListT m a # | |
PipesToSourceIO m => ToSourceIO a (ListT m a) Source # | |
toSourceIO :: ListT m a -> SourceIO a # | |
(MonadIO m, a' ~ X, a ~ (), b' ~ (), r ~ ()) => FromSourceIO b (Proxy a' a b' b m r) Source # | |
fromSourceIO :: SourceIO b -> Proxy a' a b' b m r # | |
(PipesToSourceIO m, a' ~ X, a ~ (), b' ~ (), r ~ ()) => ToSourceIO b (Proxy a' a b' b m r) Source # | |
toSourceIO :: Proxy a' a b' b m r -> SourceIO b # |