Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- run :: Show configs => InitializeCallbacks configs -> Handlers -> Options -> Maybe FilePath -> IO Int
- runWith :: Show config => IO ByteString -> (ByteString -> IO ()) -> InitializeCallbacks config -> Handlers -> Options -> Maybe FilePath -> IO Int
- runWithHandles :: Show config => Handle -> Handle -> InitializeCallbacks config -> Handlers -> Options -> Maybe FilePath -> IO Int
Documentation
:: Show configs | |
=> InitializeCallbacks configs | function to be called once initialize has been received from the client. Further message processing will start only after this returns. |
-> Handlers | |
-> Options | |
-> Maybe FilePath | File to capture the session to. |
-> IO Int |
Convenience function for 'runWithHandles stdin stdout'.
:: Show config | |
=> IO ByteString | Client input. |
-> (ByteString -> IO ()) | Function to provide output to. |
-> InitializeCallbacks config | |
-> Handlers | |
-> Options | |
-> Maybe FilePath | |
-> IO Int |
Starts listening and sending requests and responses using the specified I/O.