Concise Binary Object Representation

Version on this page:
LTS Haskell 22.28:
Stackage Nightly 2024-07-13:
Latest on Hackage:

See all snapshots cborg appears in

BSD-3-Clause licensed by Duncan Coutts
This version can be pinned in stack with:cborg-,4488

This package (formerly binary-serialise-cbor) provides an efficient implementation of the Concise Binary Object Representation (CBOR), as specified by RFC 7049.

If you are looking for a library for serialisation of Haskell values, have a look at the serialise package, which is built upon this library.

An implementation of the standard bijection between CBOR and JSON is provided by the cborg-json package. Also see cbor-tool for a convenient command-line utility for working with CBOR data.


Revision history for cborg – 2018-10-11

  • Bounds bumps and GHC 8.6 compatibility – 2017-11-30

  • Improved robustness of non-UTF-8 strings

  • Add encoders and decoders for ByteArray

  • Add decoding variants that check for canonical encodings

  • Expose Codec.CBOR.Read.deserialiseFromBytesWithSize – 2017-06-28

  • First version. Released on an unsuspecting world.