Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Transport m = Transport {
- write :: ByteString -> m ()
- read :: Int -> m ByteString
- close :: m ()
- data TransportError
- readFully :: Monad m => Transport m -> Int -> m ByteString
Documentation
'm' is the monad to to run it in, 'h' is the heuristic value which, where
'e' is ByteString
, is the number of bytes to read. 'e' is the stream
element type.
Transport | |
|
data TransportError Source #