benc-0.1.0.0: Bencode encoding and decoding library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Bencode.Type

Description

This module defines the Value type to represent any valid Bencode value.

Generally you will want to write decoders and encoders to work with your own types. See Data.Bencode.Decode and Data.Bencode.Encode to get started.

Synopsis

Documentation

data Value Source #

A type that can represent any Bencode value.

Instances

Instances details
Show Value Source # 
Instance details

Defined in Data.Bencode.Type

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

Eq Value Source # 
Instance details

Defined in Data.Bencode.Type

Methods

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

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

Ord Value Source # 
Instance details

Defined in Data.Bencode.Type

Methods

compare :: Value -> Value -> Ordering #

(<) :: Value -> Value -> Bool #

(<=) :: Value -> Value -> Bool #

(>) :: Value -> Value -> Bool #

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

max :: Value -> Value -> Value #

min :: Value -> Value -> Value #