bencodex-1.0.0: Bencodex reader/writer for Haskell

Safe HaskellSafe
LanguageHaskell2010

Data.Bencodex

Synopsis

Documentation

data BKey Source #

Instances
Eq BKey Source # 
Instance details

Defined in Data.Bencodex.Types

Methods

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

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

Ord BKey Source # 
Instance details

Defined in Data.Bencodex.Types

Methods

compare :: BKey -> BKey -> Ordering #

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

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

(>) :: BKey -> BKey -> Bool #

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

max :: BKey -> BKey -> BKey #

min :: BKey -> BKey -> BKey #

Show BKey Source # 
Instance details

Defined in Data.Bencodex.Types

Methods

showsPrec :: Int -> BKey -> ShowS #

show :: BKey -> String #

showList :: [BKey] -> ShowS #

Generic BKey Source # 
Instance details

Defined in Data.Bencodex.Types

Associated Types

type Rep BKey :: Type -> Type #

Methods

from :: BKey -> Rep BKey x #

to :: Rep BKey x -> BKey #

Hashable BKey Source # 
Instance details

Defined in Data.Bencodex.Types

Methods

hashWithSalt :: Int -> BKey -> Int #

hash :: BKey -> Int #

type Rep BKey Source # 
Instance details

Defined in Data.Bencodex.Types

type Rep BKey = D1 (MetaData "BKey" "Data.Bencodex.Types" "bencodex-1.0.0-9Q8hzVsJ9RM8uxfYl3oMVJ" False) (C1 (MetaCons "BTextKey" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :+: C1 (MetaCons "BByteStringKey" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString)))

data BValue Source #

Instances
Eq BValue Source # 
Instance details

Defined in Data.Bencodex.Types

Methods

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

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

Ord BValue Source # 
Instance details

Defined in Data.Bencodex.Types

Show BValue Source # 
Instance details

Defined in Data.Bencodex.Types

data Result r #

The result of a parse.

Constructors

Fail ByteString [String] String

The parse failed. The ByteString is the input that had not yet been consumed when the failure occurred. The [String] is a list of contexts in which the error occurred. The String is the message describing the error, if any.

Done ByteString r

The parse succeeded. The ByteString is the input that had not yet been consumed (if any) when the parse succeeded.

Instances
Functor Result 
Instance details

Defined in Data.Attoparsec.ByteString.Lazy

Methods

fmap :: (a -> b) -> Result a -> Result b #

(<$) :: a -> Result b -> Result a #

Show r => Show (Result r) 
Instance details

Defined in Data.Attoparsec.ByteString.Lazy

Methods

showsPrec :: Int -> Result r -> ShowS #

show :: Result r -> String #

showList :: [Result r] -> ShowS #

NFData r => NFData (Result r) 
Instance details

Defined in Data.Attoparsec.ByteString.Lazy

Methods

rnf :: Result r -> () #