haskell-language-server-2.7.0.0: LSP server for GHC

Safe Haskell | None
Language | GHC2021

Ide.Plugin.Cabal.LicenseSuggest

Contents

- Re-exports

Synopsis

- licenseErrorSuggestion :: Text -> [(Text, Text)]
- licenseErrorAction :: Uri -> Diagnostic -> [CodeAction]
- licenseNames :: [Text]
- data Text
- data Diagnostic = Diagnostic {
  - _range :: Range
  - _severity :: Maybe DiagnosticSeverity
  - _code :: Maybe (Int32 |? Text)
  - _codeDescription :: Maybe CodeDescription
  - _source :: Maybe Text
  - _message :: Text
  - _tags :: Maybe [DiagnosticTag]
  - _relatedInformation :: Maybe [DiagnosticRelatedInformation]
  - _data_ :: Maybe Value
  }

# Documentation

licenseErrorSuggestion #

Arguments

:: Text | Output of `errorDiagnostic`
-> [(Text, Text)] | (Original (incorrect) license identifier, suggested replacement)

Given a diagnostic returned by `errorDiagnostic`, provide possible corrections for SPDX license identifiers based on the list specified in Cabal. Results are sorted by best fit, and prefer solutions that have smaller length distance to the original word.

    >>> take 2 $ licenseErrorSuggestion (T.pack "Unknown SPDX license identifier: 'BSD3'")
    [("BSD3","BSD-3-Clause"),("BSD3","BSD-3-Clause-LBNL")]

licenseErrorAction #

Arguments

:: Uri | File for which the diagnostic was generated
-> Diagnostic | Output of `errorDiagnostic`
-> [CodeAction] |

Given a diagnostic returned by `errorDiagnostic`, if it represents an "Unknown SPDX license identifier"-error along with a suggestion, then return a `CodeAction` for replacing the the incorrect license identifier with the suggestion.

licenseNames :: [Text] #

License name of every license supported by cabal

# Re-exports

data Text #

A space efficient, packed, unboxed Unicode text type.

#### Instances

Instances details

Structured Text |
Instance details Defined in Distribution.Utils.Structured Methods structure :: Proxy Text -> Structure # structureHash' :: Tagged Text MD5
Chunk Text |

Instance details

Defined in Data.Attoparsec.Internal.Types

Associated Types

type ChunkElem Text |
Instance details Defined in Data.Attoparsec.Internal.Types type ChunkElem Text = Char

Methods

nullChunk :: Text -> Bool #

pappendChunk :: State Text -> Text -> State Text #

atBufferEnd :: Text -> State Text -> Pos #

bufferElemAt :: Text -> Pos -> State Text -> Maybe (ChunkElem Text, Int) #

chunkElemToChar :: Text -> ChunkElem Text -> Char #

Hashable Text |
Instance details Defined in Data.Hashable.Class Methods hashWithSalt :: Int -> Text -> Int # hash :: Text -> Int #
Ixed Text |
Instance details Defined in Control.Lens.At Methods ix :: Index Text -> Traversal' Text (IxValue Text) #
AsEmpty Text |
Instance details Defined in Control.Lens.Empty Methods _Empty :: Prism' Text () #
Reversing Text |
Instance details Defined in Control.Lens.Internal.Iso Methods reversing :: Text -> Text #
Prefixed Text |
Instance details Defined in Control.Lens.Prism Methods prefixed :: Text -> Prism' Text Text #
Suffixed Text |
Instance details Defined in Control.Lens.Prism Methods suffixed :: Text -> Prism' Text Text #
IsText Text |
Instance details Defined in Data.Text.Lens Methods packed :: Iso' String Text # builder :: Iso' Text Builder # text :: IndexedTraversal' Int Text Char #
AsJSON Text |
Instance details Defined in Data.Aeson.Lens Methods _JSON :: (FromJSON a, ToJSON b) => Prism Text Text a b #
AsNumber Text |
Instance details Defined in Data.Aeson.Lens Methods _Number :: Prism' Text Scientific # _Double :: Prism' Text Double # _Integer :: Prism' Text Integer #
AsValue Text |
Instance details Defined in Data.Aeson.Lens Methods _Value :: Prism' Text Value # _String :: Prism' Text Text # _Bool :: Prism' Text Bool # _Null :: Prism' Text () # _Object :: Prism' Text (KeyMap Value) # _Array :: Prism' Text (Vector Value) #
IsKey Text |
Instance details Defined in Data.Aeson.Lens Methods _Key :: Iso' Text Key #
Stream Text |

Instance details

Defined in Text.Megaparsec.Stream

Associated Types

type Token Text |
Instance details Defined in Text.Megaparsec.Stream type Token Text = Token (ShareInput Text)
type Tokens Text |
Instance details Defined in Text.Megaparsec.Stream type Tokens Text = Tokens (ShareInput Text)

Methods

tokenToChunk :: Proxy Text -> Token Text -> Tokens Text #

tokensToChunk :: Proxy Text -> [Token Text] -> Tokens Text #

chunkToTokens :: Proxy Text -> Tokens Text -> [Token Text] #

chunkLength :: Proxy Text -> Tokens Text -> Int #

chunkEmpty :: Proxy Text -> Tokens Text -> Bool #

take1_ :: Text -> Maybe (Token Text, Text) #

takeN_ :: Int -> Text -> Maybe (Tokens Text, Text) #

takeWhile_ :: (Token Text -> Bool) -> Text -> (Tokens Text, Text) #

TraversableStream Text |
Instance details Defined in Text.Megaparsec.Stream Methods reachOffset :: Int -> PosState Text -> (Maybe String, PosState Text) # reachOffsetNoLine :: Int -> PosState Text -> PosState Text #
VisualStream Text |
Instance details Defined in Text.Megaparsec.Stream Methods showTokens :: Proxy Text -> NonEmpty (Token Text) -> String # tokensLength :: Proxy Text -> NonEmpty (Token Text) -> Int #

Pretty Text

Automatically converts all newlines to ``line``.

    >>> pretty ("hello\nworld" :: Text)
    hello
    world

Note that ``line`` can be undone by ``group``:

    >>> group (pretty ("hello\nworld" :: Text))
    hello world

Manually use ``hardline`` if you definitely want newlines.

Instance details Defined in Prettyprinter.Internal Methods pretty :: Text -> Doc ann # prettyList :: [Text] -> Doc ann #
Extract Text | Since: regex-base-0.94.0.0
Instance details Defined in Text.Regex.Base.RegexLike Methods before :: Int -> Text -> Text # after :: Int -> Text -> Text # empty :: Text # extract :: (Int, Int) -> Text -> Text #
Uncons Text | Since: regex-tdfa-1.3.1
Instance details Defined in Text.Regex.TDFA.NewDFA.Uncons Methods uncons :: Text -> Maybe (Char, Text) #
HasJsonrpc NotificationMessage Text |
Instance details Defined in Language.LSP.Protocol.Message.Lens Methods jsonrpc :: Lens' NotificationMessage Text
HasJsonrpc RequestMessage Text |
Instance details Defined in Language.LSP.Protocol.Message.Lens Methods jsonrpc :: Lens' RequestMessage Text
HasJsonrpc ResponseMessage Text |
Instance details Defined in Language.LSP.Protocol.Message.Lens Methods jsonrpc :: Lens' ResponseMessage Text
HasCh DocumentOnTypeFormattingParams Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods ch :: Lens' DocumentOnTypeFormattingParams Text
HasCommand Command Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods command :: Lens' Command Text
HasCommand ExecuteCommandParams Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods command :: Lens' ExecuteCommandParams Text
HasFirstTriggerCharacter DocumentOnTypeFormattingOptions Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods firstTriggerCharacter :: Lens' DocumentOnTypeFormattingOptions Text
HasFirstTriggerCharacter DocumentOnTypeFormattingRegistrationOptions Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods firstTriggerCharacter :: Lens' DocumentOnTypeFormattingRegistrationOptions Text
HasGlob FileOperationPattern Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods glob :: Lens' FileOperationPattern Text
HasId Registration Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' Registration Text
HasId Unregistration Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' Unregistration Text
HasIdentifier Moniker Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods identifier :: Lens' Moniker Text
HasKind ResourceOperation Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods kind :: Lens' ResourceOperation Text
HasLabel ChangeAnnotation Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods label :: Lens' ChangeAnnotation Text
HasLabel ColorPresentation Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods label :: Lens' ColorPresentation Text
HasLabel CompletionItem Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods label :: Lens' CompletionItem Text
HasLabel SignatureInformation Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods label :: Lens' SignatureInformation Text
HasLanguage MarkedStringWithLanguage Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods language :: Lens' MarkedStringWithLanguage Text
HasLanguage NotebookCellLanguage Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods language :: Lens' NotebookCellLanguage Text
HasLanguage TextDocumentFilterLanguage Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods language :: Lens' TextDocumentFilterLanguage Text
HasMessage Diagnostic Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods message :: Lens' Diagnostic Text
HasMessage DiagnosticRelatedInformation Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods message :: Lens' DiagnosticRelatedInformation Text
HasMessage LogMessageParams Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods message :: Lens' LogMessageParams Text
HasMessage LogTraceParams Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods message :: Lens' LogTraceParams Text
HasMessage ShowMessageParams Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods message :: Lens' ShowMessageParams Text
HasMessage ShowMessageRequestParams Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods message :: Lens' ShowMessageRequestParams Text
HasMethod Registration Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods method :: Lens' Registration Text
HasMethod Unregistration Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods method :: Lens' Unregistration Text
HasName BaseSymbolInformation Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods name :: Lens' BaseSymbolInformation Text
HasName CallHierarchyItem Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods name :: Lens' CallHierarchyItem Text
HasName ClientInfo Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods name :: Lens' ClientInfo Text
HasName DocumentSymbol Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods name :: Lens' DocumentSymbol Text
HasName ServerInfo Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods name :: Lens' ServerInfo Text
HasName SymbolInformation Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods name :: Lens' SymbolInformation Text
HasName TypeHierarchyItem Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods name :: Lens' TypeHierarchyItem Text
HasName WorkspaceFolder Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods name :: Lens' WorkspaceFolder Text
HasName WorkspaceSymbol Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods name :: Lens' WorkspaceSymbol Text
HasNewName RenameParams Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods newName :: Lens' RenameParams Text
HasNewText AnnotatedTextEdit Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods newText :: Lens' AnnotatedTextEdit Text
HasNewText InsertReplaceEdit Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods newText :: Lens' InsertReplaceEdit Text
HasNewText TextEdit Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods newText :: Lens' TextEdit Text
HasNewUri FileRename Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods newUri :: Lens' FileRename Text
HasNotebookType NotebookDocument Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods notebookType :: Lens' NotebookDocument Text
HasNotebookType NotebookDocumentFilterNotebookType Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods notebookType :: Lens' NotebookDocumentFilterNotebookType Text
HasOldUri FileRename Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods oldUri :: Lens' FileRename Text
HasParser MarkdownClientCapabilities Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods parser :: Lens' MarkdownClientCapabilities Text
HasPattern NotebookDocumentFilterPattern Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods pattern :: Lens' NotebookDocumentFilterPattern Text
HasPattern TextDocumentFilterPattern Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods pattern :: Lens' TextDocumentFilterPattern Text
HasPlaceholder PrepareRenamePlaceholder Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods placeholder :: Lens' PrepareRenamePlaceholder Text
HasPreviousResultId SemanticTokensDeltaParams Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods previousResultId :: Lens' SemanticTokensDeltaParams Text
HasQuery WorkspaceSymbolParams Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods query :: Lens' WorkspaceSymbolParams Text
HasReason CodeActionDisabled Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods reason :: Lens' CodeActionDisabled Text
HasResultId RelatedUnchangedDocumentDiagnosticReport Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods resultId :: Lens' RelatedUnchangedDocumentDiagnosticReport Text
HasResultId UnchangedDocumentDiagnosticReport Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods resultId :: Lens' UnchangedDocumentDiagnosticReport Text
HasResultId WorkspaceUnchangedDocumentDiagnosticReport Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods resultId :: Lens' WorkspaceUnchangedDocumentDiagnosticReport Text
HasScheme Moniker Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods scheme :: Lens' Moniker Text
HasScheme NotebookDocumentFilterScheme Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods scheme :: Lens' NotebookDocumentFilterScheme Text
HasScheme TextDocumentFilterScheme Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods scheme :: Lens' TextDocumentFilterScheme Text
HasText InlineValueText Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods text :: Lens' InlineValueText Text
HasText TextDocumentContentChangePartial Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods text :: Lens' TextDocumentContentChangePartial Text
HasText TextDocumentContentChangeWholeDocument Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods text :: Lens' TextDocumentContentChangeWholeDocument Text
HasText TextDocumentItem Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods text :: Lens' TextDocumentItem Text
HasTitle CodeAction Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods title :: Lens' CodeAction Text
HasTitle Command Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods title :: Lens' Command Text
HasTitle MessageActionItem Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods title :: Lens' MessageActionItem Text
HasTitle WorkDoneProgressBegin Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods title :: Lens' WorkDoneProgressBegin Text
HasUri FileCreate Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods uri :: Lens' FileCreate Text
HasUri FileDelete Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods uri :: Lens' FileDelete Text
HasValue InlayHintLabelPart Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods value :: Lens' InlayHintLabelPart Text
HasValue MarkedStringWithLanguage Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods value :: Lens' MarkedStringWithLanguage Text
HasValue MarkupContent Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods value :: Lens' MarkupContent Text
HasValue PreviousResultId Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods value :: Lens' PreviousResultId Text
Cons Text Text Char Char |
Instance details Defined in Control.Lens.Cons Methods _Cons :: Prism Text Text (Char, Text) (Char, Text) #
Snoc Text Text Char Char |
Instance details Defined in Control.Lens.Cons Methods _Snoc :: Prism Text Text (Text, Char) (Text, Char) #

(a ~ Char, b ~ Char) => Each Text Text a b

    each :: Traversal Text Text Char Char

Instance details Defined in Control.Lens.Each Methods each :: Traversal Text Text a b #
HasAllCommitCharacters CompletionOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods allCommitCharacters :: Lens' CompletionOptions (Maybe [Text])
HasAllCommitCharacters CompletionRegistrationOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods allCommitCharacters :: Lens' CompletionRegistrationOptions (Maybe [Text])
HasAllowedTags MarkdownClientCapabilities (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods allowedTags :: Lens' MarkdownClientCapabilities (Maybe [Text])
HasChangeNotifications WorkspaceFoldersServerCapabilities (Maybe (Text |? Bool)) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods changeNotifications :: Lens' WorkspaceFoldersServerCapabilities (Maybe (Text |? Bool))
HasCode Diagnostic (Maybe (Int32 |? Text)) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods code :: Lens' Diagnostic (Maybe (Int32 |? Text))
HasCollapsedText FoldingRange (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods collapsedText :: Lens' FoldingRange (Maybe Text)
HasCommands ExecuteCommandOptions [Text] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods commands :: Lens' ExecuteCommandOptions [Text]
HasCommands ExecuteCommandRegistrationOptions [Text] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods commands :: Lens' ExecuteCommandRegistrationOptions [Text]
HasCommitCharacters CompletionItem (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods commitCharacters :: Lens' CompletionItem (Maybe [Text])
HasCommitCharacters CompletionItemDefaults (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods commitCharacters :: Lens' CompletionItemDefaults (Maybe [Text])
HasContainerName BaseSymbolInformation (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods containerName :: Lens' BaseSymbolInformation (Maybe Text)
HasContainerName SymbolInformation (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods containerName :: Lens' SymbolInformation (Maybe Text)
HasContainerName WorkspaceSymbol (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods containerName :: Lens' WorkspaceSymbol (Maybe Text)
HasDescription ChangeAnnotation (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods description :: Lens' ChangeAnnotation (Maybe Text)
HasDescription CompletionItemLabelDetails (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods description :: Lens' CompletionItemLabelDetails (Maybe Text)
HasDetail CallHierarchyItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods detail :: Lens' CallHierarchyItem (Maybe Text)
HasDetail CompletionItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods detail :: Lens' CompletionItem (Maybe Text)
HasDetail CompletionItemLabelDetails (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods detail :: Lens' CompletionItemLabelDetails (Maybe Text)
HasDetail DocumentSymbol (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods detail :: Lens' DocumentSymbol (Maybe Text)
HasDetail TypeHierarchyItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods detail :: Lens' TypeHierarchyItem (Maybe Text)
HasDocumentation CompletionItem (Maybe (Text |? MarkupContent)) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods documentation :: Lens' CompletionItem (Maybe (Text |? MarkupContent))
HasDocumentation ParameterInformation (Maybe (Text |? MarkupContent)) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods documentation :: Lens' ParameterInformation (Maybe (Text |? MarkupContent))
HasDocumentation SignatureInformation (Maybe (Text |? MarkupContent)) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods documentation :: Lens' SignatureInformation (Maybe (Text |? MarkupContent))
HasExpression InlineValueEvaluatableExpression (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods expression :: Lens' InlineValueEvaluatableExpression (Maybe Text)
HasFailureReason ApplyWorkspaceEditResult (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods failureReason :: Lens' ApplyWorkspaceEditResult (Maybe Text)
HasFilterText CompletionItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods filterText :: Lens' CompletionItem (Maybe Text)
HasId CallHierarchyRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' CallHierarchyRegistrationOptions (Maybe Text)
HasId DeclarationRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' DeclarationRegistrationOptions (Maybe Text)
HasId DiagnosticRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' DiagnosticRegistrationOptions (Maybe Text)
HasId DocumentColorRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' DocumentColorRegistrationOptions (Maybe Text)
HasId FoldingRangeRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' FoldingRangeRegistrationOptions (Maybe Text)
HasId ImplementationRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' ImplementationRegistrationOptions (Maybe Text)
HasId InlayHintRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' InlayHintRegistrationOptions (Maybe Text)
HasId InlineValueRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' InlineValueRegistrationOptions (Maybe Text)
HasId LinkedEditingRangeRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' LinkedEditingRangeRegistrationOptions (Maybe Text)
HasId NotebookDocumentSyncRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' NotebookDocumentSyncRegistrationOptions (Maybe Text)
HasId SelectionRangeRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' SelectionRangeRegistrationOptions (Maybe Text)
HasId SemanticTokensRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' SemanticTokensRegistrationOptions (Maybe Text)
HasId StaticRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' StaticRegistrationOptions (Maybe Text)
HasId TypeDefinitionRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' TypeDefinitionRegistrationOptions (Maybe Text)
HasId TypeHierarchyRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' TypeHierarchyRegistrationOptions (Maybe Text)
HasIdentifier DiagnosticOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods identifier :: Lens' DiagnosticOptions (Maybe Text)
HasIdentifier DiagnosticRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods identifier :: Lens' DiagnosticRegistrationOptions (Maybe Text)
HasIdentifier DocumentDiagnosticParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods identifier :: Lens' DocumentDiagnosticParams (Maybe Text)
HasIdentifier WorkspaceDiagnosticParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods identifier :: Lens' WorkspaceDiagnosticParams (Maybe Text)
HasInsertText CompletionItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods insertText :: Lens' CompletionItem (Maybe Text)
HasItemDefaults CompletionListCapabilities (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods itemDefaults :: Lens' CompletionListCapabilities (Maybe [Text])
HasLabel ApplyWorkspaceEditParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods label :: Lens' ApplyWorkspaceEditParams (Maybe Text)
HasLabel DocumentSymbolOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods label :: Lens' DocumentSymbolOptions (Maybe Text)
HasLabel DocumentSymbolRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods label :: Lens' DocumentSymbolRegistrationOptions (Maybe Text)
HasLanguage NotebookCellTextDocumentFilter (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods language :: Lens' NotebookCellTextDocumentFilter (Maybe Text)
HasLanguage TextDocumentFilterPattern (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods language :: Lens' TextDocumentFilterPattern (Maybe Text)
HasLanguage TextDocumentFilterScheme (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods language :: Lens' TextDocumentFilterScheme (Maybe Text)
HasLocale InitializeParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods locale :: Lens' InitializeParams (Maybe Text)
HasLocale UInitializeParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods locale :: Lens' UInitializeParams (Maybe Text)
HasMessage WorkDoneProgressBegin (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods message :: Lens' WorkDoneProgressBegin (Maybe Text)
HasMessage WorkDoneProgressEnd (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods message :: Lens' WorkDoneProgressEnd (Maybe Text)
HasMessage WorkDoneProgressReport (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods message :: Lens' WorkDoneProgressReport (Maybe Text)
HasMoreTriggerCharacter DocumentOnTypeFormattingOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods moreTriggerCharacter :: Lens' DocumentOnTypeFormattingOptions (Maybe [Text])
HasMoreTriggerCharacter DocumentOnTypeFormattingRegistrationOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods moreTriggerCharacter :: Lens' DocumentOnTypeFormattingRegistrationOptions (Maybe [Text])
HasNotebook NotebookDocumentFilterWithCells (Maybe (Text |? NotebookDocumentFilter)) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods notebook :: Lens' NotebookDocumentFilterWithCells (Maybe (Text |? NotebookDocumentFilter))
HasNotebookType NotebookDocumentFilterPattern (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods notebookType :: Lens' NotebookDocumentFilterPattern (Maybe Text)
HasNotebookType NotebookDocumentFilterScheme (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods notebookType :: Lens' NotebookDocumentFilterScheme (Maybe Text)
HasPattern NotebookDocumentFilterNotebookType (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods pattern :: Lens' NotebookDocumentFilterNotebookType (Maybe Text)
HasPattern NotebookDocumentFilterScheme (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods pattern :: Lens' NotebookDocumentFilterScheme (Maybe Text)
HasPattern TextDocumentFilterLanguage (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods pattern :: Lens' TextDocumentFilterLanguage (Maybe Text)
HasPattern TextDocumentFilterScheme (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods pattern :: Lens' TextDocumentFilterScheme (Maybe Text)
HasPreviousResultId DocumentDiagnosticParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods previousResultId :: Lens' DocumentDiagnosticParams (Maybe Text)
HasProperties ClientCodeActionResolveOptions [Text] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods properties :: Lens' ClientCodeActionResolveOptions [Text]
HasProperties ClientCompletionItemResolveOptions [Text] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods properties :: Lens' ClientCompletionItemResolveOptions [Text]
HasProperties ClientInlayHintResolveOptions [Text] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods properties :: Lens' ClientInlayHintResolveOptions [Text]
HasProperties ClientSymbolResolveOptions [Text] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods properties :: Lens' ClientSymbolResolveOptions [Text]
HasResultId FullDocumentDiagnosticReport (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods resultId :: Lens' FullDocumentDiagnosticReport (Maybe Text)
HasResultId RelatedFullDocumentDiagnosticReport (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods resultId :: Lens' RelatedFullDocumentDiagnosticReport (Maybe Text)
HasResultId SemanticTokens (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods resultId :: Lens' SemanticTokens (Maybe Text)
HasResultId SemanticTokensDelta (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods resultId :: Lens' SemanticTokensDelta (Maybe Text)
HasResultId WorkspaceFullDocumentDiagnosticReport (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods resultId :: Lens' WorkspaceFullDocumentDiagnosticReport (Maybe Text)
HasRetriggerCharacters SignatureHelpOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods retriggerCharacters :: Lens' SignatureHelpOptions (Maybe [Text])
HasRetriggerCharacters SignatureHelpRegistrationOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods retriggerCharacters :: Lens' SignatureHelpRegistrationOptions (Maybe [Text])
HasRetryOnContentModified StaleRequestSupportOptions [Text] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods retryOnContentModified :: Lens' StaleRequestSupportOptions [Text]
HasRootPath InitializeParams (Maybe (Text |? Null)) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods rootPath :: Lens' InitializeParams (Maybe (Text |? Null))
HasRootPath UInitializeParams (Maybe (Text |? Null)) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods rootPath :: Lens' UInitializeParams (Maybe (Text |? Null))
HasScheme FileOperationFilter (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods scheme :: Lens' FileOperationFilter (Maybe Text)
HasScheme NotebookDocumentFilterNotebookType (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods scheme :: Lens' NotebookDocumentFilterNotebookType (Maybe Text)
HasScheme NotebookDocumentFilterPattern (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods scheme :: Lens' NotebookDocumentFilterPattern (Maybe Text)
HasScheme TextDocumentFilterLanguage (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods scheme :: Lens' TextDocumentFilterLanguage (Maybe Text)
HasScheme TextDocumentFilterPattern (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods scheme :: Lens' TextDocumentFilterPattern (Maybe Text)
HasSection ConfigurationItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods section :: Lens' ConfigurationItem (Maybe Text)
HasSection DidChangeConfigurationRegistrationOptions (Maybe (Text |? [Text])) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods section :: Lens' DidChangeConfigurationRegistrationOptions (Maybe (Text |? [Text]))
HasSortText CompletionItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods sortText :: Lens' CompletionItem (Maybe Text)
HasSource Diagnostic (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods source :: Lens' Diagnostic (Maybe Text)
HasText DidSaveTextDocumentParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods text :: Lens' DidSaveTextDocumentParams (Maybe Text)
HasTextEditText CompletionItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods textEditText :: Lens' CompletionItem (Maybe Text)
HasTokenModifiers SemanticTokensClientCapabilities [Text] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods tokenModifiers :: Lens' SemanticTokensClientCapabilities [Text]
HasTokenModifiers SemanticTokensLegend [Text] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods tokenModifiers :: Lens' SemanticTokensLegend [Text]
HasTokenTypes SemanticTokensClientCapabilities [Text] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods tokenTypes :: Lens' SemanticTokensClientCapabilities [Text]
HasTokenTypes SemanticTokensLegend [Text] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods tokenTypes :: Lens' SemanticTokensLegend [Text]
HasTooltip DocumentLink (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods tooltip :: Lens' DocumentLink (Maybe Text)
HasTooltip InlayHint (Maybe (Text |? MarkupContent)) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods tooltip :: Lens' InlayHint (Maybe (Text |? MarkupContent))
HasTooltip InlayHintLabelPart (Maybe (Text |? MarkupContent)) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods tooltip :: Lens' InlayHintLabelPart (Maybe (Text |? MarkupContent))
HasTriggerCharacter CompletionContext (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods triggerCharacter :: Lens' CompletionContext (Maybe Text)
HasTriggerCharacter SignatureHelpContext (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods triggerCharacter :: Lens' SignatureHelpContext (Maybe Text)
HasTriggerCharacters CompletionOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods triggerCharacters :: Lens' CompletionOptions (Maybe [Text])
HasTriggerCharacters CompletionRegistrationOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods triggerCharacters :: Lens' CompletionRegistrationOptions (Maybe [Text])
HasTriggerCharacters SignatureHelpOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods triggerCharacters :: Lens' SignatureHelpOptions (Maybe [Text])
HasTriggerCharacters SignatureHelpRegistrationOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods triggerCharacters :: Lens' SignatureHelpRegistrationOptions (Maybe [Text])
HasVariableName InlineValueVariableLookup (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods variableName :: Lens' InlineValueVariableLookup (Maybe Text)
HasVerbose LogTraceParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods verbose :: Lens' LogTraceParams (Maybe Text)
HasVersion ClientInfo (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods version :: Lens' ClientInfo (Maybe Text)
HasVersion MarkdownClientCapabilities (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods version :: Lens' MarkdownClientCapabilities (Maybe Text)
HasVersion RegularExpressionsClientCapabilities (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods version :: Lens' RegularExpressionsClientCapabilities (Maybe Text)
HasVersion ServerInfo (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods version :: Lens' ServerInfo (Maybe Text)
HasWordPattern LinkedEditingRanges (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods wordPattern :: Lens' LinkedEditingRanges (Maybe Text)
HasId CancelParams (Int32 |? Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods id :: Lens' CancelParams (Int32 |? Text)
HasLabel InlayHint (Text |? [InlayHintLabelPart]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods label :: Lens' InlayHint (Text |? [InlayHintLabelPart])
HasLabel ParameterInformation (Text |? (UInt, UInt)) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods label :: Lens' ParameterInformation (Text |? (UInt, UInt))
HasNotebook NotebookCellTextDocumentFilter (Text |? NotebookDocumentFilter) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods notebook :: Lens' NotebookCellTextDocumentFilter (Text |? NotebookDocumentFilter)
HasNotebook NotebookDocumentFilterWithNotebook (Text |? NotebookDocumentFilter) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods notebook :: Lens' NotebookDocumentFilterWithNotebook (Text |? NotebookDocumentFilter)
Stream (NoShareInput Text) |

Instance details

Defined in Text.Megaparsec.Stream

Associated Types

type Token (NoShareInput Text) |
Instance details Defined in Text.Megaparsec.Stream type Token (NoShareInput Text) = Char
type Tokens (NoShareInput Text) |
Instance details Defined in Text.Megaparsec.Stream type Tokens (NoShareInput Text) = Text

Methods

tokenToChunk :: Proxy (NoShareInput Text) -> Token (NoShareInput Text) -> Tokens (NoShareInput Text) #

tokensToChunk :: Proxy (NoShareInput Text) -> [Token (NoShareInput Text)] -> Tokens (NoShareInput Text) #

chunkToTokens :: Proxy (NoShareInput Text) -> Tokens (NoShareInput Text) -> [Token (NoShareInput Text)] #

chunkLength :: Proxy (NoShareInput Text) -> Tokens (NoShareInput Text) -> Int #

chunkEmpty :: Proxy (NoShareInput Text) -> Tokens (NoShareInput Text) -> Bool #

take1_ :: NoShareInput Text -> Maybe (Token (NoShareInput Text), NoShareInput Text) #

takeN_ :: Int -> NoShareInput Text -> Maybe (Tokens (NoShareInput Text), NoShareInput Text) #

takeWhile_ :: (Token (NoShareInput Text) -> Bool) -> NoShareInput Text -> (Tokens (NoShareInput Text), NoShareInput Text) #

Stream (ShareInput Text) |

Instance details

Defined in Text.Megaparsec.Stream

Associated Types

type Token (ShareInput Text) |
Instance details Defined in Text.Megaparsec.Stream type Token (ShareInput Text) = Char
type Tokens (ShareInput Text) |
Instance details Defined in Text.Megaparsec.Stream type Tokens (ShareInput Text) = Text

Methods

tokenToChunk :: Proxy (ShareInput Text) -> Token (ShareInput Text) -> Tokens (ShareInput Text) #

tokensToChunk :: Proxy (ShareInput Text) -> [Token (ShareInput Text)] -> Tokens (ShareInput Text) #

chunkToTokens :: Proxy (ShareInput Text) -> Tokens (ShareInput Text) -> [Token (ShareInput Text)] #

chunkLength :: Proxy (ShareInput Text) -> Tokens (ShareInput Text) -> Int #

chunkEmpty :: Proxy (ShareInput Text) -> Tokens (ShareInput Text) -> Bool #

take1_ :: ShareInput Text -> Maybe (Token (ShareInput Text), ShareInput Text) #

takeN_ :: Int -> ShareInput Text -> Maybe (Tokens (ShareInput Text), ShareInput Text) #

takeWhile_ :: (Token (ShareInput Text) -> Bool) -> ShareInput Text -> (Tokens (ShareInput Text), ShareInput Text) #

HasJsonrpc (TNotificationMessage m) Text |
Instance details Defined in Language.LSP.Protocol.Message.Lens Methods jsonrpc :: Lens' (TNotificationMessage m) Text
HasJsonrpc (TRequestMessage m) Text |
Instance details Defined in Language.LSP.Protocol.Message.Lens Methods jsonrpc :: Lens' (TRequestMessage m) Text
HasJsonrpc (TResponseMessage m) Text |
Instance details Defined in Language.LSP.Protocol.Message.Lens Methods jsonrpc :: Lens' (TResponseMessage m) Text
type ChunkElem Text |
Instance details Defined in Data.Attoparsec.Internal.Types type ChunkElem Text = Char
type State Text |
Instance details Defined in Data.Attoparsec.Internal.Types type State Text = Buffer
type Item Text |
Instance details Defined in Data.Text type Item Text = Char
type Index Text |
Instance details Defined in Control.Lens.At type Index Text = Int
type IxValue Text |
Instance details Defined in Control.Lens.At type IxValue Text = Char
type Token Text |
Instance details Defined in Text.Megaparsec.Stream type Token Text = Token (ShareInput Text)
type Tokens Text |
Instance details Defined in Text.Megaparsec.Stream type Tokens Text = Tokens (ShareInput Text)
type Token (NoShareInput Text) |
Instance details Defined in Text.Megaparsec.Stream type Token (NoShareInput Text) = Char
type Token (ShareInput Text) |
Instance details Defined in Text.Megaparsec.Stream type Token (ShareInput Text) = Char
type Tokens (NoShareInput Text) |
Instance details Defined in Text.Megaparsec.Stream type Tokens (NoShareInput Text) = Text
type Tokens (ShareInput Text) |
Instance details Defined in Text.Megaparsec.Stream type Tokens (ShareInput Text) = Text

data Diagnostic #

Constructors

Diagnostic |

Fields

- _range :: Range
- _severity :: Maybe DiagnosticSeverity
- _code :: Maybe (Int32 |? Text)
- _codeDescription :: Maybe CodeDescription
- _source :: Maybe Text
- _message :: Text
- _tags :: Maybe [DiagnosticTag]
- _relatedInformation :: Maybe [DiagnosticRelatedInformation]
- _data_ :: Maybe Value

#### Instances

Instances details

FromJSON Diagnostic |
Instance details Defined in Language.LSP.Protocol.Internal.Types.Diagnostic Methods parseJSON :: Value -> Parser Diagnostic # parseJSONList :: Value -> Parser [Diagnostic] # omittedField :: Maybe Diagnostic #
ToJSON Diagnostic |
Instance details Defined in Language.LSP.Protocol.Internal.Types.Diagnostic Methods toJSON :: Diagnostic -> Value # toEncoding :: Diagnostic -> Encoding # toJSONList :: [Diagnostic] -> Value # toEncodingList :: [Diagnostic] -> Encoding # omitField :: Diagnostic -> Bool #
Generic Diagnostic |

Instance details

Defined in Language.LSP.Protocol.Internal.Types.Diagnostic

Associated Types

type Rep Diagnostic |

Instance details

Defined in Language.LSP.Protocol.Internal.Types.Diagnostic

type Rep Diagnostic = D1 ('MetaData "Diagnostic" "Language.LSP.Protocol.Internal.Types.Diagnostic" "lsp-types-2.2.0.0-8Xein21J7hgLjsXepwEL9j" 'False) (C1 ('MetaCons "Diagnostic" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_range") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Range) :*: S1 ('MetaSel ('Just "_severity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DiagnosticSeverity))) :*: (S1 ('MetaSel ('Just "_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Int32 |? Text))) :*: S1 ('MetaSel ('Just "_codeDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CodeDescription)))) :*: ((S1 ('MetaSel ('Just "_source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "_tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DiagnosticTag])) :*: (S1 ('MetaSel ('Just "_relatedInformation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DiagnosticRelatedInformation])) :*: S1 ('MetaSel ('Just "_data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Value)))))))

Methods

from :: Diagnostic -> Rep Diagnostic x #

to :: Rep Diagnostic x -> Diagnostic #

Show Diagnostic |
Instance details Defined in Language.LSP.Protocol.Internal.Types.Diagnostic Methods showsPrec :: Int -> Diagnostic -> ShowS # show :: Diagnostic -> String # showList :: [Diagnostic] -> ShowS #
NFData Diagnostic |
Instance details Defined in Language.LSP.Protocol.Internal.Types.Diagnostic Methods rnf :: Diagnostic -> () #
Eq Diagnostic |
Instance details Defined in Language.LSP.Protocol.Internal.Types.Diagnostic Methods (==) :: Diagnostic -> Diagnostic -> Bool # (/=) :: Diagnostic -> Diagnostic -> Bool #
Ord Diagnostic |
Instance details Defined in Language.LSP.Protocol.Internal.Types.Diagnostic Methods compare :: Diagnostic -> Diagnostic -> Ordering # (<) :: Diagnostic -> Diagnostic -> Bool # (<=) :: Diagnostic -> Diagnostic -> Bool # (>) :: Diagnostic -> Diagnostic -> Bool # (>=) :: Diagnostic -> Diagnostic -> Bool # max :: Diagnostic -> Diagnostic -> Diagnostic # min :: Diagnostic -> Diagnostic -> Diagnostic #
Hashable Diagnostic |
Instance details Defined in Language.LSP.Protocol.Internal.Types.Diagnostic Methods hashWithSalt :: Int -> Diagnostic -> Int # hash :: Diagnostic -> Int #
Pretty Diagnostic |
Instance details Defined in Language.LSP.Protocol.Internal.Types.Diagnostic Methods pretty :: Diagnostic -> Doc ann # prettyList :: [Diagnostic] -> Doc ann #
HasMessage Diagnostic Text |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods message :: Lens' Diagnostic Text
HasRange Diagnostic Range |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods range :: Lens' Diagnostic Range
HasCode Diagnostic (Maybe (Int32 |? Text)) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods code :: Lens' Diagnostic (Maybe (Int32 |? Text))
HasCodeDescription Diagnostic (Maybe CodeDescription) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods codeDescription :: Lens' Diagnostic (Maybe CodeDescription)
HasData_ Diagnostic (Maybe Value) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods data_ :: Lens' Diagnostic (Maybe Value)
HasDiagnostics CodeAction (Maybe [Diagnostic]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods diagnostics :: Lens' CodeAction (Maybe [Diagnostic])
HasDiagnostics CodeActionContext [Diagnostic] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods diagnostics :: Lens' CodeActionContext [Diagnostic]
HasDiagnostics PublishDiagnosticsParams [Diagnostic] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods diagnostics :: Lens' PublishDiagnosticsParams [Diagnostic]
HasItems FullDocumentDiagnosticReport [Diagnostic] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods items :: Lens' FullDocumentDiagnosticReport [Diagnostic]
HasItems RelatedFullDocumentDiagnosticReport [Diagnostic] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods items :: Lens' RelatedFullDocumentDiagnosticReport [Diagnostic]
HasItems WorkspaceFullDocumentDiagnosticReport [Diagnostic] |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods items :: Lens' WorkspaceFullDocumentDiagnosticReport [Diagnostic]
HasRelatedInformation Diagnostic (Maybe [DiagnosticRelatedInformation]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods relatedInformation :: Lens' Diagnostic (Maybe [DiagnosticRelatedInformation])
HasSeverity Diagnostic (Maybe DiagnosticSeverity) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods severity :: Lens' Diagnostic (Maybe DiagnosticSeverity)
HasSource Diagnostic (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods source :: Lens' Diagnostic (Maybe Text)
HasTags Diagnostic (Maybe [DiagnosticTag]) |
Instance details Defined in Language.LSP.Protocol.Types.Lens Methods tags :: Lens' Diagnostic (Maybe [DiagnosticTag])
type Rep Diagnostic |

Instance details

Defined in Language.LSP.Protocol.Internal.Types.Diagnostic

type Rep Diagnostic = D1 ('MetaData "Diagnostic" "Language.LSP.Protocol.Internal.Types.Diagnostic" "lsp-types-2.2.0.0-8Xein21J7hgLjsXepwEL9j" 'False) (C1 ('MetaCons "Diagnostic" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_range") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Range) :*: S1 ('MetaSel ('Just "_severity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DiagnosticSeverity))) :*: (S1 ('MetaSel ('Just "_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Int32 |? Text))) :*: S1 ('MetaSel ('Just "_codeDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CodeDescription)))) :*: ((S1 ('MetaSel ('Just "_source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "_tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DiagnosticTag])) :*: (S1 ('MetaSel ('Just "_relatedInformation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DiagnosticRelatedInformation])) :*: S1 ('MetaSel ('Just "_data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Value)))))))