Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- data Client = Client {}
- data SessionState = SessionState {}
- data Backend = Backend {
- backendSend :: ByteString -> IO ()
- backendRecv :: IO ByteString
- backendClose :: IO ()
- type Logger = String -> IO ()
- type Formatter = Message -> String
- type Result = Either Object Object
- initSessionState :: IO SessionState
Documentation
A client data type for MessagePack RPC.
data SessionState Source #
Backend IO functions. Any receiving / sending actions are performed by calling these functions.
Backend | |
|
type Logger = String -> IO () Source #
Logger type. Should print out the message passed as a first argument somewhere.