relapse-0.1.2.0: Sensible RLP encoding

Safe HaskellSafe
LanguageHaskell2010

Data.RLP.Types

Documentation

class RLPEncodable a where Source #

Minimal complete definition

rlpEncode, rlpDecode

Instances

RLPEncodable Char Source # 
RLPEncodable Int Source # 
RLPEncodable Integer Source # 
RLPEncodable Word16 Source # 
RLPEncodable Word32 Source # 
RLPEncodable Word64 Source # 
RLPEncodable () Source # 
RLPEncodable ByteString Source # 
RLPEncodable String Source # 
RLPEncodable RLPObject Source # 
RLPEncodable a => RLPEncodable [a] Source # 
RLPEncodable a => RLPEncodable (Maybe a) Source # 
(RLPEncodable a, RLPEncodable b) => RLPEncodable (a, b) Source # 
(RLPEncodable a, RLPEncodable b, RLPEncodable c) => RLPEncodable (a, b, c) Source # 

Methods

rlpEncode :: (a, b, c) -> RLPObject Source #

rlpDecode :: RLPObject -> Either String (a, b, c) Source #

(RLPEncodable a, RLPEncodable b, RLPEncodable c, RLPEncodable d) => RLPEncodable (a, b, c, d) Source # 

Methods

rlpEncode :: (a, b, c, d) -> RLPObject Source #

rlpDecode :: RLPObject -> Either String (a, b, c, d) Source #

(RLPEncodable a, RLPEncodable b, RLPEncodable c, RLPEncodable d, RLPEncodable e) => RLPEncodable (a, b, c, d, e) Source # 

Methods

rlpEncode :: (a, b, c, d, e) -> RLPObject Source #

rlpDecode :: RLPObject -> Either String (a, b, c, d, e) Source #

(RLPEncodable a, RLPEncodable b, RLPEncodable c, RLPEncodable d, RLPEncodable e, RLPEncodable f) => RLPEncodable (a, b, c, d, e, f) Source # 

Methods

rlpEncode :: (a, b, c, d, e, f) -> RLPObject Source #

rlpDecode :: RLPObject -> Either String (a, b, c, d, e, f) Source #

(RLPEncodable a, RLPEncodable b, RLPEncodable c, RLPEncodable d, RLPEncodable e, RLPEncodable f, RLPEncodable g) => RLPEncodable (a, b, c, d, e, f, g) Source # 

Methods

rlpEncode :: (a, b, c, d, e, f, g) -> RLPObject Source #

rlpDecode :: RLPObject -> Either String (a, b, c, d, e, f, g) Source #

(RLPEncodable a, RLPEncodable b, RLPEncodable c, RLPEncodable d, RLPEncodable e, RLPEncodable f, RLPEncodable g, RLPEncodable h) => RLPEncodable (a, b, c, d, e, f, g, h) Source # 

Methods

rlpEncode :: (a, b, c, d, e, f, g, h) -> RLPObject Source #

rlpDecode :: RLPObject -> Either String (a, b, c, d, e, f, g, h) Source #

(RLPEncodable a, RLPEncodable b, RLPEncodable c, RLPEncodable d, RLPEncodable e, RLPEncodable f, RLPEncodable g, RLPEncodable h, RLPEncodable i) => RLPEncodable (a, b, c, d, e, f, g, h, i) Source # 

Methods

rlpEncode :: (a, b, c, d, e, f, g, h, i) -> RLPObject Source #

rlpDecode :: RLPObject -> Either String (a, b, c, d, e, f, g, h, i) Source #

unpackBE :: (Bits n, Integral n) => [Word8] -> n Source #