hadoop-rpc-1.0.0.0: Use the Hadoop RPC interface from Haskell.

Safe HaskellNone
LanguageHaskell2010

Network.Hadoop.Stream

Description

Lightweight abstraction over an input/output stream. (stolen from websockets package)

Synopsis

Documentation

data Stream Source

Lightweight abstraction over an input/output stream.

mkStream Source

Arguments

:: IO (Maybe ByteString)

Reading

-> (Maybe ByteString -> IO ())

Writing

-> IO Stream

Resulting stream

parse :: Stream -> Parser a -> IO (Maybe a) Source

maybeGet :: Stream -> Get a -> IO (Maybe a) Source

runGet :: Stream -> Get a -> IO a Source

runPut :: Stream -> Put -> IO () Source