Copyright | (c) 2005 Jesper Louis Andersen <jlouis@mongers.org> 2006 Lemmih <lemmih@gmail.com> |
---|---|
License | BSD3 |
Maintainer | lemmih@gmail.com |
Stability | believed to be stable |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
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.
Data types
The B-coding defines an abstract syntax tree given as a simple data type here
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
bPack :: BEncode -> ByteString Source #