Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Bearer (m :: Type -> Type) = Bearer (TimeoutFn m -> SDU -> m Time) (TimeoutFn m -> m (SDU, Time)) SDUSize String
- newtype MakeBearer (m :: Type -> Type) fd = MakeBearer {}
- makeSocketBearer :: MakeBearer IO Socket
- makePipeChannelBearer :: MakeBearer IO PipeChannel
- makeQueueChannelBearer :: forall (m :: Type -> Type). (MonadSTM m, MonadMonotonicTime m, MonadThrow m) => MakeBearer m (QueueChannel m)
Documentation
data Bearer (m :: Type -> Type) Source #
Low level access to underlying socket or pipe. There are three smart constructors:
socketAsBearer
pipeAsBearer
Test.Mux.queuesAsBearer
newtype MakeBearer (m :: Type -> Type) fd Source #
makeQueueChannelBearer :: forall (m :: Type -> Type). (MonadSTM m, MonadMonotonicTime m, MonadThrow m) => MakeBearer m (QueueChannel m) Source #