Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
CodecCBORTerm | |
|