binary-ext: Binary serialisation for Haskell values using lazy ByteStrings

[ data, library, parsing ] [ Propose Tags ]

Efficient, pure binary serialisation using lazy ByteStrings. Haskell values may be encoded to and from binary formats, written to disk as binary, or sent over the network. The format used can be automatically generated, or you can choose to implement a custom format if needed. Serialisation speeds of over 1 G/sec have been observed, so this library should be suitable for high performance scenarios.

[Skip to Readme]
Versions [RSS] [faq], 1.0,, 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4
Dependencies array, base (>= && <5), binary, bytestring (>=0.10.2), containers, ghc-prim [details]
License BSD-3-Clause
Author Lennart Kolmodin <>
Maintainer Lennart Kolmodin, Don Stewart <>
Category Data, Parsing
Home page
Source repo head: git clone git://
Uploaded by warlock at 2016-12-30T21:31:51Z
Distributions LTSHaskell:2.0.4, NixOS:2.0.4
Downloads 4466 total (36 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2016-12-30 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees


Readme for binary-ext-

[back to package description]

binary-ext package

An alternate with typed errors for Data.Binary.Get monad from binary library.

Building binary-ext

Here's how to get the latest version of the repository and build.

$ git clone
$ cd binary-ext
$ stack build

Run the test suite.

$ stack test

Using binary-ext


import Data.Binary.Put
import Data.Binary.Get.Ext

and then use the Get and Put monads to serialize/deserialize.

More information in the haddock documentation.