Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Haskell representation and serialization of BSON documents (version 1.0) as defined at
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Data fix showHexLen
test add failing test for (read . show) ObjectId
LICENSE add failing test for (read . show) ObjectId
Setup.lhs initial revision

Haskell library for the BSON encoding. Used in MongoDB. BSON documents are JSON-like objects with a standard binary encoding. A BSON Document is serialized to a standard binary encoding defined at This implements version 1 of that spec.

A BSON Document is an untyped (dynamically type-checked) record. I.e. it is a list of name-value pairs, where a Value is a single sum type with constructors for basic types (Bool, Int, Float, String, and Time), compound types (List, and (embedded) Document), and special types (Binary, Javascript, ObjectId, RegEx, and a few others).

Something went wrong with that request. Please try again.