elm-toulouse / cbor / Cbor


type CborItem
    = CborInt Basics.Int
    | CborBytes Bytes
    | CborString String
    | CborList (List CborItem)
    | CborMap (List ( CborItem, CborItem ))
    | CborTag Tag CborItem
    | CborBool Basics.Bool
    | CborFloat Basics.Float
    | CborNull
    | CborUndefined

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


type Sign
    = Positive
    | Negative

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