pinch-0.4.3.0: An alternative implementation of Thrift for Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Pinch.Transport

Synopsis

Documentation

data Transport Source #

A bidirectional transport to readwrite messages fromto.

Constructors

Transport 

Fields

class Connection c where Source #

Methods

cGetSome :: c -> Int -> IO ByteString Source #

Gets up to n bytes. Returns an empty bytestring if EOF is reached.

cPut :: c -> ByteString -> IO () Source #

Writes the given bytestring.

Instances

Instances details
Connection Handle Source # 
Instance details

Defined in Pinch.Transport

Connection Socket Source # 
Instance details

Defined in Pinch.Transport

data ReadResult a Source #

Constructors

RRSuccess a 
RRFailure String 
RREOF 

Instances

Instances details
Show a => Show (ReadResult a) Source # 
Instance details

Defined in Pinch.Transport

Eq a => Eq (ReadResult a) Source # 
Instance details

Defined in Pinch.Transport

Methods

(==) :: ReadResult a -> ReadResult a -> Bool #

(/=) :: ReadResult a -> ReadResult a -> Bool #