ouroboros-network-framework-0.1.0.0

Ouroboros.Network.CodecCBORTerm

Synopsis

# 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 FieldsencodeTerm ∷ a → Term decodeTerm ∷ Term → Either fail a