elm-toulouse/cbor/4.0.1

Cbor

= CborInt32 Int
| CborInt64 ( Int, Int )
| CborBytes Bytes
| CborString String
| CborList (List CborItem)
| CborMap (List ( CborItem, CborItem ))
| CborTag Tag CborItem
| CborBool Bool
| CborFloat Float
| CborNull
| CborUndefined

A generic sum-type for representing any arbitrary CBOR item. See also Cbor.Decode.any and Cbor.Encode.any

There are two integer variants. CborInt32 Int holds integers cbor-encoded to 32-bit or less. CborInt64 (Int, Int) holds integers cbor-encoded to 64-bit. The pair of integers (msb, lsb) contains respectively the most significant and less significant bytes. The integer sign positive or negative is given by the sign of msb. The less significant bytes lsb must always be positive.

type Sign
= Positive
| Negative

A sum-type for representing signs of integer numbers. By convention, 0 is always Positive.