Copyright | (c) Sam Truzjan 2013 |
---|---|
License | BSD3 |
Maintainer | [email protected] |
Stability | stable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Data.BEncode.Types
Contents
Description
Types for working with bencode data.
Types
type BString = ByteString Source #
A raw bencode string.
BValue
is straightforward ADT for b-encoded values. Please
note that since dictionaries are sorted, in most cases we can
compare BEncoded values without serialization and vice versa.
Lists is not required to be sorted through.
Constructors
BInteger !BInteger | bencode integers; |
BString !BString | bencode strings; |
BList BList | list of bencode values; |
BDict BDict | bencode key-value dictionary. |