bencode-0.1: Parser and printer for bencoded data.ContentsIndex
Data.BEncode
Portabilityportable
Stabilitybelieved to be stable
Maintainerlemmih@gmail.com
Contents
Data types
Functions
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 BEncode
= BInt Int
| BString ByteString
| BList [BEncode]
| BDict (Map String BEncode)
bRead :: ByteString -> Maybe BEncode
bShow :: BEncode -> ShowS
Data types
data BEncode
The B-coding defines an abstract syntax tree given as a simple data type here
Constructors
BInt Int
BString ByteString
BList [BEncode]
BDict (Map String BEncode)
show/hide Instances
Functions
bRead :: ByteString -> Maybe BEncode
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 -> ShowS
Render a BEncode structure to a B-coded string
Produced by Haddock version 0.8