Safe Haskell | None |
---|---|
Language | Haskell2010 |
Unversioned protocol, used in tests and demo applications.
Synopsis
- data UnversionedProtocol = UnversionedProtocol
- data UnversionedProtocolData = UnversionedProtocolData
- unversionedHandshakeCodec :: MonadST m => Codec ( Handshake UnversionedProtocol Term ) DeserialiseFailure m ByteString
- unversionedProtocolDataCodec :: VersionDataCodec Term UnversionedProtocol UnversionedProtocolData
- unversionedProtocol :: app -> Versions UnversionedProtocol UnversionedProtocolData app
- newtype DataFlowProtocolData = DataFlowProtocolData { }
- dataFlowProtocolDataCodec :: UnversionedProtocol -> CodecCBORTerm Text DataFlowProtocolData
- dataFlowProtocol :: DataFlow -> app -> Versions UnversionedProtocol DataFlowProtocolData app
Documentation
data UnversionedProtocol Source #
Version negotiation for an unversioned protocol. We only use this for tests and demos where proper versioning is excessive.
Instances
unversionedHandshakeCodec :: MonadST m => Codec ( Handshake UnversionedProtocol Term ) DeserialiseFailure m ByteString Source #
Handshake
codec used in various tests.
unversionedProtocolDataCodec :: VersionDataCodec Term UnversionedProtocol UnversionedProtocolData Source #
unversionedProtocol :: app -> Versions UnversionedProtocol UnversionedProtocolData app Source #
Make a
Versions
for an unversioned protocol. Only use this for
tests and demos where proper versioning is excessive.
newtype DataFlowProtocolData Source #
Alternative for
UnversionedProtocolData
which contains
DataFlow
.
Instances
dataFlowProtocolDataCodec :: UnversionedProtocol -> CodecCBORTerm Text DataFlowProtocolData Source #
dataFlowProtocol :: DataFlow -> app -> Versions UnversionedProtocol DataFlowProtocolData app Source #