relapse-0.1.1.0: Sensible RLP encoding

Safe HaskellNone
LanguageHaskell2010

Data.RLP

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 #