ouroboros-consensus:unstable-consensus-testlib
Safe HaskellNone
LanguageHaskell2010

Test.Util.Serialisation.CBOR

Description

CBOR lists and maps built by hand, for testing that a decoder accepts either the definite-length or the indefinite-length encoding.

Synopsis

Documentation

definite ∷ [Encoding] → Encoding Source #

The items as a definite-length list.

definiteMap ∷ [Encoding] → Encoding Source #

The key-value pairs as a definite-length map.

indefinite ∷ [Encoding] → Encoding Source #

The items as an indefinite-length list.

indefiniteMap ∷ [Encoding] → Encoding Source #

The key-value pairs as an indefinite-length map.