bson: BSON documents are JSON-like objects with a standard binary encoding.

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.


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). A BSON Document is serialized to a standard binary encoding defined at This implements version 1 of that spec.


Versions0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.3, 0.3.1, 0.3.2,,,,,,,
Dependenciesbase (<5), binary (>=0.5 && <0.9), bytestring, cryptohash, data-binary-ieee754, mtl (>=2), network, text (>=0.11), time [details]
CopyrightCopyright (c) 2010-2012 10gen Inc.
AuthorTony Hannan
MaintainerFedor Gogolev <>, Greg Weber <>
Home page
Source repositoryhead: git clone
UploadedTue Dec 18 03:14:14 UTC 2018 by VictorDenisov




Maintainers' corner

For package maintainers and hackage trustees