@hackage serialise0.2.6.1
A binary serialisation library for Haskell values.
Categories
License
BSD-3-Clause
Maintainer
duncan@community.haskell.org, ben@smart-cactus.org
Links
Versions
Installation
Tested Compilers
Dependencies (16)
- array >=0.4 && <0.6
- base >=4.11 && <4.22
- bytestring >=0.10.4 && <0.13
- cborg >=0.2 && <0.3
- containers >=0.5 && <0.8
- ghc-prim >=0.3.1.0 && <0.14 Show all…
Dependents (114)
@cardano/ouroboros-network, @cardano/plutus-tx-plugin, @cardano/cardano-node-socket-emulator, @cardano/ouroboros-consensus-diffusion, @cardano/plutus-scripts-bench, @cardano/marlowe-chain-sync, Show all…
Package Flags
newtime15
(on by default)
Use the new time 1.5 library
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 without custom tools.
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.