Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Coupling
- couple :: IOCallbacks -> IOCallbacks -> IO Coupling
- breakCoupling :: Coupling -> IO ()
- sendSourceToIO :: MonadIO m => Source m ByteString -> IOCallbacks -> m ()
- iocallbacksToSink :: MonadIO m => IOCallbacks -> Sink ByteString m ()
- popIOCallbacksIntoExistance :: IO (IOCSideA, IOCSideB)
- data IOCSideA
- data IOCSideB
Documentation
data Coupling
A coupling between two IOCallbacks. It is breakable...
couple :: IOCallbacks -> IOCallbacks -> IO Coupling
Connects two IO callbacks so that data received in one is sent to the other.
breakCoupling :: Coupling -> IO ()
sendSourceToIO :: MonadIO m => Source m ByteString -> IOCallbacks -> m ()
Sends the data coming from the source to the IOCallbacks. No exceptions are handled here. This consumes the thread until it finishes. The iocallbacks is not closed.
iocallbacksToSink :: MonadIO m => IOCallbacks -> Sink ByteString m ()