Cbor.Decode.Extra

Extra CBOR decoding utility functions.

set : Decoder a -> Decoder (List a)

Decoder for a set of value. Either an array or within a tag 258.

Don’t ask me why this exists. IOHK designed this standard long ago and wanted to use it. Regardless of what the people wanted.

Ref: https://github.com/input-output-hk/cbor-sets-spec/blob/master/CBOR_SETS.md

natural : Decoder Natural

Decode an unbounded positive integer.

integer : Decoder Integer

Decode an unbounded integer.

failWith : String -> Decoder a

Helper decoder to display the raw bytes on which the decoder has failed.