serialise: A binary serialisation library for Haskell values.

[ bsd3, codec, library ] [ Propose Tags ]

This package (formerly binary-serialise-cbor) provides pure, efficient serialization of Haskell values directly into ByteStrings for storage or transmission purposes. By providing a set of type class instances, you can also serialise any custom data type you have as well.

The underlying binary format used is the 'Concise Binary Object Representation', or CBOR, specified in RFC 7049. As a result, serialised Haskell values have implicit structure outside of the Haskell program itself, meaning they can be inspected or analyzed with custom tools.

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

Change log
Dependencies array (>=0.4 && <0.6), base (>=4.6 && <5.0), bytestring (>=0.10.4 && <0.11), cborg (==0.2.*), containers (==0.5.*), ghc-prim (>=0.3 && <0.6), half (>= && <0.3), hashable (>=1.2 && <2.0), old-locale, primitive (>=0.5 && <0.7), text (>=1.1 && <1.3), time (>=1.4 && <1.9), unordered-containers (==0.2.*), vector (>=0.10 && <0.13) [details]
License BSD-3-Clause
Copyright 2015-2017 Duncan Coutts, 2015-2017 Well-Typed LLP, 2015 IRIS Connect Ltd
Author Duncan Coutts
Category Codec
Home page
Bug tracker
Source repo head: git clone
Uploaded by BenGamari at Thu Nov 30 00:54:12 UTC 2017
Distributions NixOS:
Downloads 550 total (40 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-11-30 [all 1 reports]
Hackage Matrix CI





Use the new time 1.5 library


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees