websockets-0.9.0.1: A sensible and clean way to write WebSocket-capable servers in Haskell.

Safe HaskellNone
LanguageHaskell98

Network.WebSockets.Stream

Description

Lightweight abstraction over an input/output stream.

Synopsis

Documentation

data Stream Source

Lightweight abstraction over an input/output stream.

makeStream Source

Arguments

:: IO (Maybe ByteString)

Reading

-> (Maybe ByteString -> IO ())

Writing

-> IO Stream

Resulting stream

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