bencode-0.3: Parser and printer for bencoded data.

Portabilityportable
Stabilitybelieved to be stable
Maintainerlemmih@gmail.com

Data.BEncode

Contents

Description

Provides a BEncode data type is well as functions for converting this data type to and from a String.

Also supplies a number of properties which the module must satisfy.

Synopsis

Data types

data BEncode Source

The B-coding defines an abstract syntax tree given as a simple data type here

Functions

bRead :: ByteString -> Maybe BEncodeSource

bRead is a conversion routine. It assumes a B-coded string as input and attempts a parse of it into a BEncode data type

bShow :: BEncode -> ShowSSource

Render a BEncode structure to a B-coded string