| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DMQ.Protocol.LocalMsgNotification.Codec
Description
The codec for the local message notification miniprotocol
Synopsis
- codecLocalMsgNotification :: forall crypto (m :: Type -> Type). (MonadST m, Crypto crypto) => AnnotatedCodec (LocalMsgNotification (Sig crypto)) DeserialiseFailure m ByteString
- codecLocalMsgNotification' :: forall msg msgWithBytes (m :: Type -> Type). MonadST m => (ByteString -> WithByteSpan (ByteString -> msgWithBytes) -> msg) -> (msg -> Encoding) -> (forall s. Decoder s (ByteString -> msgWithBytes)) -> AnnotatedCodec (LocalMsgNotification msg) DeserialiseFailure m ByteString
Documentation
codecLocalMsgNotification :: forall crypto (m :: Type -> Type). (MonadST m, Crypto crypto) => AnnotatedCodec (LocalMsgNotification (Sig crypto)) DeserialiseFailure m ByteString Source #
The codec for the loca message notification miniprotocol instantiated for dmq-node.
codecLocalMsgNotification' :: forall msg msgWithBytes (m :: Type -> Type). MonadST m => (ByteString -> WithByteSpan (ByteString -> msgWithBytes) -> msg) -> (msg -> Encoding) -> (forall s. Decoder s (ByteString -> msgWithBytes)) -> AnnotatedCodec (LocalMsgNotification msg) DeserialiseFailure m ByteString Source #
A polymorphic annotated codec for the local message notification miniprotocol. Useful for testing.