{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
module Language.Haskell.LSP.Messages
( module Language.Haskell.LSP.TH.MessageFuncs
, FromClientMessage(..)
, FromServerMessage(..)
)
where
import Language.Haskell.LSP.TH.MessageFuncs
import Language.Haskell.LSP.TH.DataTypesJSON
import GHC.Generics
import Data.Aeson
data FromClientMessage = ReqInitialize InitializeRequest
| ReqShutdown ShutdownRequest
| ReqHover HoverRequest
| ReqCompletion CompletionRequest
| ReqCompletionItemResolve CompletionItemResolveRequest
| ReqSignatureHelp SignatureHelpRequest
| ReqDefinition DefinitionRequest
| ReqFindReferences ReferencesRequest
| ReqDocumentHighlights DocumentHighlightRequest
| ReqDocumentSymbols DocumentSymbolRequest
| ReqWorkspaceSymbols WorkspaceSymbolRequest
| ReqCodeAction CodeActionRequest
| ReqCodeLens CodeLensRequest
| ReqCodeLensResolve CodeLensResolveRequest
| ReqDocumentFormatting DocumentFormattingRequest
| ReqDocumentRangeFormatting DocumentRangeFormattingRequest
| ReqDocumentOnTypeFormatting DocumentOnTypeFormattingRequest
| ReqRename RenameRequest
| ReqExecuteCommand ExecuteCommandRequest
| ReqDocumentLink DocumentLinkRequest
| ReqDocumentLinkResolve DocumentLinkResolveRequest
| ReqWillSaveWaitUntil WillSaveWaitUntilTextDocumentRequest
| RspApplyWorkspaceEdit ApplyWorkspaceEditResponse
| RspFromClient BareResponseMessage
| NotInitialized InitializedNotification
| NotExit ExitNotification
| NotCancelRequestFromClient CancelNotification
| NotDidChangeConfiguration DidChangeConfigurationNotification
| NotDidOpenTextDocument DidOpenTextDocumentNotification
| NotDidChangeTextDocument DidChangeTextDocumentNotification
| NotDidCloseTextDocument DidCloseTextDocumentNotification
| NotWillSaveTextDocument WillSaveTextDocumentNotification
| NotDidSaveTextDocument DidSaveTextDocumentNotification
| NotDidChangeWatchedFiles DidChangeWatchedFilesNotification
| UnknownFromClientMessage Value
deriving (Eq,Read,Show,Generic,ToJSON,FromJSON)
data FromServerMessage = ReqRegisterCapability RegisterCapabilityRequest
| ReqUnregisterCapability UnregisterCapabilityRequest
| ReqApplyWorkspaceEdit ApplyWorkspaceEditRequest
| ReqShowMessage ShowMessageRequest
| RspInitialize InitializeResponse
| RspShutdown ShutdownResponse
| RspHover HoverResponse
| RspCompletion CompletionResponse
| RspCompletionItemResolve CompletionItemResolveResponse
| RspSignatureHelp SignatureHelpResponse
| RspDefinition DefinitionResponse
| RspFindReferences ReferencesResponse
| RspDocumentHighlights DocumentHighlightsResponse
| RspDocumentSymbols DocumentSymbolsResponse
| RspWorkspaceSymbols WorkspaceSymbolsResponse
| RspCodeAction CodeActionResponse
| RspCodeLens CodeLensResponse
| RspCodeLensResolve CodeLensResolveResponse
| RspDocumentFormatting DocumentFormattingResponse
| RspDocumentRangeFormatting DocumentRangeFormattingResponse
| RspDocumentOnTypeFormatting DocumentOnTypeFormattingResponse
| RspRename RenameResponse
| RspExecuteCommand ExecuteCommandResponse
| RspError ErrorResponse
| RspDocumentLink DocumentLinkResponse
| RspDocumentLinkResolve DocumentLinkResolveResponse
| RspWillSaveWaitUntil WillSaveWaitUntilTextDocumentResponse
| NotPublishDiagnostics PublishDiagnosticsNotification
| NotLogMessage LogMessageNotification
| NotShowMessage ShowMessageNotification
| NotTelemetry TelemetryNotification
| NotCancelRequestFromServer CancelNotificationServer
deriving (Eq,Read,Show,Generic,ToJSON,FromJSON)