pinch-0.4.1.2: An alternative implementation of Thrift for Haskell.
Safe HaskellNone
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
Eq a => Eq (ReadResult a) Source # 
Instance details

Defined in Pinch.Transport

Methods

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

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

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

Defined in Pinch.Transport