| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Network.CodecCBORTerm
Synopsis
- data CodecCBORTerm fail a = CodecCBORTerm {
- encodeTerm :: a -> Term
- decodeTerm :: Term -> Either fail a
Documentation
data CodecCBORTerm fail a Source #
A pure codec which encodes to / decodes from Term. This is useful
if one expects a valid cbor encoding, which one might not know how to
decode like in the Handshake protocol.
Constructors
| CodecCBORTerm | |
Fields
| |