| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Network.ADB.Transport
- 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.
Constructors
| Transport | |
Fields 
  | |
data TransportError Source #
Constructors
| ADBFailure String | |
| SocketFailure IOError | |
| ConnectionFailure ByteString | |
| ClosedByPeer | |
| IllegalData | 
Instances