| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DMQ.Protocol.LocalMsgSubmission.Client
Description
A higher level API to implement clients for local message submission
miniprotocol. This aliases the client from the LocalTxSubmission protocol.
For execution, localMsgSubmissionClientPeer reinterprets this high level
description into the underlying typed protocol representation.
Synopsis
- type LocalMsgSubmissionClient sig = LocalTxSubmissionClient sig SigMempoolFail
- type LocalMsgClientStIdle = LocalTxClientStIdle
- localMsgSubmissionClientPeer :: forall msg (m :: Type -> Type) a. Monad m => LocalMsgSubmissionClient msg m a -> Client (LocalMsgSubmission msg) 'NonPipelined ('StIdle :: LocalTxSubmission msg SigMempoolFail) m a
Client API types (re-exports)
type LocalMsgSubmissionClient sig = LocalTxSubmissionClient sig SigMempoolFail Source #
Type aliases for the high level client API
type LocalMsgClientStIdle = LocalTxClientStIdle Source #
Translates the client into a typed protocol
localMsgSubmissionClientPeer :: forall msg (m :: Type -> Type) a. Monad m => LocalMsgSubmissionClient msg m a -> Client (LocalMsgSubmission msg) 'NonPipelined ('StIdle :: LocalTxSubmission msg SigMempoolFail) m a Source #
A non-pipelined Peer representing the LocalMsgSubmissionClient.
Translates a high level client description into the underlying typed protocol representation.