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.

[maintain]

Warnings:

A library for fast and easy encoding and decoding of BEncode data.


[Skip to ReadMe]

Properties

Versions0.1.0.0, 0.2.0.0, 0.2.1.0, 0.2.2.0, 0.3.0.0, 0.4.0.0, 0.4.0.1, 0.4.0.2, 0.4.1.0, 0.4.2.0, 0.4.2.1, 0.4.3.0, 0.4.4.0, 0.4.4.0
Change logChangeLog
Dependenciesattoparsec (>=0.10), base (>=4.4 && <5), bytestring (>=0.10), deepseq (>=1.3), ghc-prim, integer-gmp, mtl, pretty, semigroups (>=0.9 && <0.19), text (>=0.11) [details]
LicenseBSD-3-Clause
Copyright(c) 2013-2018, Sam Truzjan (c) 2018 Sergey Vinokurov
AuthorSam Truzjan
MaintainerSergey Vinokurov <serg.foo@gmail.com>
CategoryData
Home pagehttps://github.com/sergv/bencoding
Bug trackerhttps://github.com/sergv/bencoding/issues
Source repositoryhead: git clone https://github.com/sergv/bencoding.git -b master
this: git clone https://github.com/sergv/bencoding.git -b master(tag v0.4.4.0)
UploadedSat Aug 18 12:14:34 UTC 2018 by SergeyVinokurov

Modules

[Index]

Flags

NameDescriptionDefaultType
dev

Enable development options

DisabledManual

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for bencoding-0.4.4.0

[back to package description]

Synopsis

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

Description

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

Format

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:

Documentation

For documentation see package hackage page.

Build Status

Build Status

Maintainer serg.foo@gmail.com

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