bencoding: A library for encoding and decoding of BEncode data.

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 library for encoding and decoding of BEncode data.

Release notes

[Skip to ReadMe]


Change logNone available
Dependenciesattoparsec (>=0.10), base (==4.*), bytestring (>=, containers (>=0.4), deepseq (==1.3.*), ghc-prim, pretty, text (>=0.11) [details]
Copyright(c) 2013, Sam Truzjan
AuthorSam Truzjan
MaintainerSam Truzjan <>
Home page
Bug tracker
Source repositoryhead: git clone git:// -b master
this: git clone git:// -b master(tag v0.2.1.0)
UploadedFri Sep 27 23:36:31 UTC 2013 by SamTruzjan




Maintainers' corner

For package maintainers and hackage trustees

Readme for bencoding-

[back to package description]


BEncode is JSON-like format used in bittorrent protocol but might be used anywhere else.


This package implements fast seamless encoding/decoding to/from bencode format for many native datatypes. To achive more performance we use bytestring builders and hand optimized attoparsec parser so this library is considered as replacement for BEncode and AttoBencode packages.


Bencode is pretty similar to JSON: it has dictionaries(JSON objects), lists(JSON arrays), strings and integers. However bencode has a few advantages:

Hovewer there are some disadvantages comparing with JSON:


For documentation see package hackage page.

Build Status

Build Status


Feel free to report bugs and suggestions via issue tracker or the mail.