Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- cancelRequest :: (Int32 |? Text) -> Lsp ()
- withDebugging :: (Show (TRequestMessage message), Show (MessageResult message)) => (TRequestMessage message -> (Either ResponseError (MessageResult message) -> Lsp ()) -> Lsp ()) -> TRequestMessage message -> (Either ResponseError (MessageResult message) -> Lsp ()) -> Lsp ()
- withCancellation :: forall message. Maybe Int -> (TRequestMessage message -> (Either ResponseError (MessageResult message) -> Lsp ()) -> Lsp ()) -> TRequestMessage message -> (Either ResponseError (MessageResult message) -> Lsp ()) -> Lsp ()
Documentation
withDebugging :: (Show (TRequestMessage message), Show (MessageResult message)) => (TRequestMessage message -> (Either ResponseError (MessageResult message) -> Lsp ()) -> Lsp ()) -> TRequestMessage message -> (Either ResponseError (MessageResult message) -> Lsp ()) -> Lsp () Source #
withCancellation :: forall message. Maybe Int -> (TRequestMessage message -> (Either ResponseError (MessageResult message) -> Lsp ()) -> Lsp ()) -> TRequestMessage message -> (Either ResponseError (MessageResult message) -> Lsp ()) -> Lsp () Source #
Handler middleware to add the ability for the client to cancel long-running in-flight requests.