bencode-0.6.1.1: Parsers and printers for bencoded data.

Copyright(c) 2005 Jesper Louis Andersen <jlouis@mongers.org>
2006 Lemmih <lemmih@gmail.com>
LicenseBSD3
Maintainerlemmih@gmail.com
Stabilitybelieved to be stable
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

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

Instances
Eq BEncode Source # 
Instance details

Defined in Data.BEncode

Methods

(==) :: BEncode -> BEncode -> Bool #

(/=) :: BEncode -> BEncode -> Bool #

Ord BEncode Source # 
Instance details

Defined in Data.BEncode

Show BEncode Source # 
Instance details

Defined in Data.BEncode

Binary BEncode Source # 
Instance details

Defined in Data.BEncode

Methods

put :: BEncode -> Put #

get :: Get BEncode #

putList :: [BEncode] -> Put #

Functions

bRead :: ByteString -> Maybe BEncode Source #

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 Source #

Render a BEncode structure to a B-coded string