Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ExternalException = ExternalException {}
- serverKilledException :: Maybe IOException -> ExternalException
- data RpcConversation = RpcConversation {}
- data Request
- newtype Response = Response IncBS
- newtype IncBS = IncBS {}
- hPutFlush :: Handle -> ByteString -> IO ()
- ignoreIOExceptions :: IO () -> IO ()
- openPipeForWriting :: FilePath -> Int -> IO Handle
- openPipeForReading :: FilePath -> Int -> IO Handle
External exceptions
data ExternalException Source
Exceptions thrown by the remote server
ExternalException | |
|
serverKilledException :: Maybe IOException -> ExternalException Source
Generic exception thrown if the server gets killed for unknown reason
Client-server communication
data RpcConversation Source
Lazy bytestring with incremental Binary instance
IO utils
hPutFlush :: Handle -> ByteString -> IO () Source
Write a bytestring to a buffer and flush
ignoreIOExceptions :: IO () -> IO () Source
Ignore IO exceptions
openPipeForWriting :: FilePath -> Int -> IO Handle Source
Open a pipe for writing
This is meant to be used together with openPipeForReading
openPipeForReading :: FilePath -> Int -> IO Handle Source
Open a pipe for reading
This is meant to be used together with openPipeForWriting