hls-cabal-plugin-2.4.0.0: Cabal integration plugin with Haskell Language Server

Safe Haskell | Safe-Inferred
Language | Haskell2010

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 #

#### 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 # 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) #
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 #

type Tokens 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 #
HasCh DocumentOnTypeFormattingParams Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods ch :: Lens' DocumentOnTypeFormattingParams Text #
HasCommand Command Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods command :: Lens' Command Text #
HasCommand ExecuteCommandParams Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods command :: Lens' ExecuteCommandParams Text #
HasEngine RegularExpressionsClientCapabilities Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods engine :: Lens' RegularExpressionsClientCapabilities Text #
HasFirstTriggerCharacter DocumentOnTypeFormattingOptions Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods firstTriggerCharacter :: Lens' DocumentOnTypeFormattingOptions Text #
HasFirstTriggerCharacter DocumentOnTypeFormattingRegistrationOptions Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods firstTriggerCharacter :: Lens' DocumentOnTypeFormattingRegistrationOptions Text #
HasGlob FileOperationPattern Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods glob :: Lens' FileOperationPattern Text #
HasId Registration Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' Registration Text #
HasId Unregistration Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' Unregistration Text #
HasIdentifier Moniker Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods identifier :: Lens' Moniker Text #
HasKind ResourceOperation Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods kind :: Lens' ResourceOperation Text #
HasLabel ChangeAnnotation Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods label :: Lens' ChangeAnnotation Text #
HasLabel ColorPresentation Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods label :: Lens' ColorPresentation Text #
HasLabel CompletionItem Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods label :: Lens' CompletionItem Text #
HasLabel SignatureInformation Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods label :: Lens' SignatureInformation Text #
HasLanguageId TextDocumentItem Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods languageId :: Lens' TextDocumentItem Text #
HasMessage Diagnostic Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods message :: Lens' Diagnostic Text #
HasMessage DiagnosticRelatedInformation Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods message :: Lens' DiagnosticRelatedInformation Text #
HasMessage LogMessageParams Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods message :: Lens' LogMessageParams Text #
HasMessage LogTraceParams Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods message :: Lens' LogTraceParams Text #
HasMessage ShowMessageParams Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods message :: Lens' ShowMessageParams Text #
HasMessage ShowMessageRequestParams Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods message :: Lens' ShowMessageRequestParams Text #
HasMethod Registration Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods method :: Lens' Registration Text #
HasMethod Unregistration Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods method :: Lens' Unregistration Text #
HasName BaseSymbolInformation Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods name :: Lens' BaseSymbolInformation Text #
HasName CallHierarchyItem Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods name :: Lens' CallHierarchyItem Text #
HasName DocumentSymbol Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods name :: Lens' DocumentSymbol Text #
HasName SymbolInformation Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods name :: Lens' SymbolInformation Text #
HasName TypeHierarchyItem Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods name :: Lens' TypeHierarchyItem Text #
HasName WorkspaceFolder Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods name :: Lens' WorkspaceFolder Text #
HasName WorkspaceSymbol Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods name :: Lens' WorkspaceSymbol Text #
HasNewName RenameParams Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods newName :: Lens' RenameParams Text #
HasNewText AnnotatedTextEdit Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods newText :: Lens' AnnotatedTextEdit Text #
HasNewText InsertReplaceEdit Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods newText :: Lens' InsertReplaceEdit Text #
HasNewText TextEdit Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods newText :: Lens' TextEdit Text #
HasNewUri FileRename Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods newUri :: Lens' FileRename Text #
HasNotebookType NotebookDocument Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods notebookType :: Lens' NotebookDocument Text #
HasOldUri FileRename Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods oldUri :: Lens' FileRename Text #
HasParser MarkdownClientCapabilities Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods parser :: Lens' MarkdownClientCapabilities Text #
HasPreviousResultId SemanticTokensDeltaParams Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods previousResultId :: Lens' SemanticTokensDeltaParams Text #
HasQuery WorkspaceSymbolParams Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods query :: Lens' WorkspaceSymbolParams Text #
HasResultId RelatedUnchangedDocumentDiagnosticReport Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods resultId :: Lens' RelatedUnchangedDocumentDiagnosticReport Text #
HasResultId UnchangedDocumentDiagnosticReport Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods resultId :: Lens' UnchangedDocumentDiagnosticReport Text #
HasResultId WorkspaceUnchangedDocumentDiagnosticReport Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods resultId :: Lens' WorkspaceUnchangedDocumentDiagnosticReport Text #
HasScheme Moniker Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods scheme :: Lens' Moniker Text #
HasText InlineValueText Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods text :: Lens' InlineValueText Text #
HasText TextDocumentItem Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods text :: Lens' TextDocumentItem Text #
HasTitle CodeAction Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods title :: Lens' CodeAction Text #
HasTitle Command Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods title :: Lens' Command Text #
HasTitle MessageActionItem Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods title :: Lens' MessageActionItem Text #
HasTitle WorkDoneProgressBegin Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods title :: Lens' WorkDoneProgressBegin Text #
HasUri FileCreate Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods uri :: Lens' FileCreate Text #
HasUri FileDelete Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods uri :: Lens' FileDelete Text #
HasValue InlayHintLabelPart Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods value :: Lens' InlayHintLabelPart Text #
HasValue MarkupContent Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods value :: Lens' MarkupContent Text #
HasValue PreviousResultId Text |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods value :: Lens' PreviousResultId 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 #
HasAllCommitCharacters CompletionOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods allCommitCharacters :: Lens' CompletionOptions (Maybe [Text]) #
HasAllCommitCharacters CompletionRegistrationOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods allCommitCharacters :: Lens' CompletionRegistrationOptions (Maybe [Text]) #
HasAllowedTags MarkdownClientCapabilities (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods allowedTags :: Lens' MarkdownClientCapabilities (Maybe [Text]) #
HasChangeNotifications WorkspaceFoldersServerCapabilities (Maybe (Text |? Bool)) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods changeNotifications :: Lens' WorkspaceFoldersServerCapabilities (Maybe (Text |? Bool)) #
HasCode Diagnostic (Maybe (Int32 |? Text)) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods code :: Lens' Diagnostic (Maybe (Int32 |? Text)) #
HasCollapsedText FoldingRange (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods collapsedText :: Lens' FoldingRange (Maybe Text) #
HasCommands ExecuteCommandOptions [Text] |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods commands :: Lens' ExecuteCommandOptions [Text] #
HasCommands ExecuteCommandRegistrationOptions [Text] |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods commands :: Lens' ExecuteCommandRegistrationOptions [Text] #
HasCommitCharacters CompletionItem (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods commitCharacters :: Lens' CompletionItem (Maybe [Text]) #
HasContainerName BaseSymbolInformation (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods containerName :: Lens' BaseSymbolInformation (Maybe Text) #
HasContainerName SymbolInformation (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods containerName :: Lens' SymbolInformation (Maybe Text) #
HasContainerName WorkspaceSymbol (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods containerName :: Lens' WorkspaceSymbol (Maybe Text) #
HasDescription ChangeAnnotation (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods description :: Lens' ChangeAnnotation (Maybe Text) #
HasDescription CompletionItemLabelDetails (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods description :: Lens' CompletionItemLabelDetails (Maybe Text) #
HasDetail CallHierarchyItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods detail :: Lens' CallHierarchyItem (Maybe Text) #
HasDetail CompletionItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods detail :: Lens' CompletionItem (Maybe Text) #
HasDetail CompletionItemLabelDetails (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods detail :: Lens' CompletionItemLabelDetails (Maybe Text) #
HasDetail DocumentSymbol (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods detail :: Lens' DocumentSymbol (Maybe Text) #
HasDetail TypeHierarchyItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods detail :: Lens' TypeHierarchyItem (Maybe Text) #
HasDocumentation CompletionItem (Maybe (Text |? MarkupContent)) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods documentation :: Lens' CompletionItem (Maybe (Text |? MarkupContent)) #
HasDocumentation ParameterInformation (Maybe (Text |? MarkupContent)) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods documentation :: Lens' ParameterInformation (Maybe (Text |? MarkupContent)) #
HasDocumentation SignatureInformation (Maybe (Text |? MarkupContent)) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods documentation :: Lens' SignatureInformation (Maybe (Text |? MarkupContent)) #
HasExpression InlineValueEvaluatableExpression (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods expression :: Lens' InlineValueEvaluatableExpression (Maybe Text) #
HasFailureReason ApplyWorkspaceEditResult (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods failureReason :: Lens' ApplyWorkspaceEditResult (Maybe Text) #
HasFilterText CompletionItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods filterText :: Lens' CompletionItem (Maybe Text) #
HasId CallHierarchyRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' CallHierarchyRegistrationOptions (Maybe Text) #
HasId DeclarationRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' DeclarationRegistrationOptions (Maybe Text) #
HasId DiagnosticRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' DiagnosticRegistrationOptions (Maybe Text) #
HasId DocumentColorRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' DocumentColorRegistrationOptions (Maybe Text) #
HasId FoldingRangeRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' FoldingRangeRegistrationOptions (Maybe Text) #
HasId ImplementationRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' ImplementationRegistrationOptions (Maybe Text) #
HasId InlayHintRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' InlayHintRegistrationOptions (Maybe Text) #
HasId InlineValueRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' InlineValueRegistrationOptions (Maybe Text) #
HasId LinkedEditingRangeRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' LinkedEditingRangeRegistrationOptions (Maybe Text) #
HasId NotebookDocumentSyncRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' NotebookDocumentSyncRegistrationOptions (Maybe Text) #
HasId SelectionRangeRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' SelectionRangeRegistrationOptions (Maybe Text) #
HasId SemanticTokensRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' SemanticTokensRegistrationOptions (Maybe Text) #
HasId StaticRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' StaticRegistrationOptions (Maybe Text) #
HasId TypeDefinitionRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' TypeDefinitionRegistrationOptions (Maybe Text) #
HasId TypeHierarchyRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' TypeHierarchyRegistrationOptions (Maybe Text) #
HasIdentifier DiagnosticOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods identifier :: Lens' DiagnosticOptions (Maybe Text) #
HasIdentifier DiagnosticRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods identifier :: Lens' DiagnosticRegistrationOptions (Maybe Text) #
HasIdentifier DocumentDiagnosticParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods identifier :: Lens' DocumentDiagnosticParams (Maybe Text) #
HasIdentifier WorkspaceDiagnosticParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods identifier :: Lens' WorkspaceDiagnosticParams (Maybe Text) #
HasInsertText CompletionItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods insertText :: Lens' CompletionItem (Maybe Text) #
HasLabel ApplyWorkspaceEditParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods label :: Lens' ApplyWorkspaceEditParams (Maybe Text) #
HasLabel DocumentSymbolOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods label :: Lens' DocumentSymbolOptions (Maybe Text) #
HasLabel DocumentSymbolRegistrationOptions (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods label :: Lens' DocumentSymbolRegistrationOptions (Maybe Text) #
HasLanguage NotebookCellTextDocumentFilter (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods language :: Lens' NotebookCellTextDocumentFilter (Maybe Text) #
HasLocale InitializeParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods locale :: Lens' InitializeParams (Maybe Text) #
HasLocale UInitializeParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods locale :: Lens' UInitializeParams (Maybe Text) #
HasMessage WorkDoneProgressBegin (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods message :: Lens' WorkDoneProgressBegin (Maybe Text) #
HasMessage WorkDoneProgressEnd (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods message :: Lens' WorkDoneProgressEnd (Maybe Text) #
HasMessage WorkDoneProgressReport (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods message :: Lens' WorkDoneProgressReport (Maybe Text) #
HasMoreTriggerCharacter DocumentOnTypeFormattingOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods moreTriggerCharacter :: Lens' DocumentOnTypeFormattingOptions (Maybe [Text]) #
HasMoreTriggerCharacter DocumentOnTypeFormattingRegistrationOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods moreTriggerCharacter :: Lens' DocumentOnTypeFormattingRegistrationOptions (Maybe [Text]) #
HasPreviousResultId DocumentDiagnosticParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods previousResultId :: Lens' DocumentDiagnosticParams (Maybe Text) #
HasResultId FullDocumentDiagnosticReport (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods resultId :: Lens' FullDocumentDiagnosticReport (Maybe Text) #
HasResultId RelatedFullDocumentDiagnosticReport (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods resultId :: Lens' RelatedFullDocumentDiagnosticReport (Maybe Text) #
HasResultId SemanticTokens (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods resultId :: Lens' SemanticTokens (Maybe Text) #
HasResultId SemanticTokensDelta (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods resultId :: Lens' SemanticTokensDelta (Maybe Text) #
HasResultId WorkspaceFullDocumentDiagnosticReport (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods resultId :: Lens' WorkspaceFullDocumentDiagnosticReport (Maybe Text) #
HasRetriggerCharacters SignatureHelpOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods retriggerCharacters :: Lens' SignatureHelpOptions (Maybe [Text]) #
HasRetriggerCharacters SignatureHelpRegistrationOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods retriggerCharacters :: Lens' SignatureHelpRegistrationOptions (Maybe [Text]) #
HasRootPath InitializeParams (Maybe (Text |? Null)) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods rootPath :: Lens' InitializeParams (Maybe (Text |? Null)) #
HasRootPath UInitializeParams (Maybe (Text |? Null)) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods rootPath :: Lens' UInitializeParams (Maybe (Text |? Null)) #
HasScheme FileOperationFilter (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods scheme :: Lens' FileOperationFilter (Maybe Text) #
HasScopeUri ConfigurationItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods scopeUri :: Lens' ConfigurationItem (Maybe Text) #
HasSection ConfigurationItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods section :: Lens' ConfigurationItem (Maybe Text) #
HasSection DidChangeConfigurationRegistrationOptions (Maybe (Text |? [Text])) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods section :: Lens' DidChangeConfigurationRegistrationOptions (Maybe (Text |? [Text])) #
HasSortText CompletionItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods sortText :: Lens' CompletionItem (Maybe Text) #
HasSource Diagnostic (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods source :: Lens' Diagnostic (Maybe Text) #
HasTarget DocumentLink (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods target :: Lens' DocumentLink (Maybe Text) #
HasText DidSaveTextDocumentParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods text :: Lens' DidSaveTextDocumentParams (Maybe Text) #
HasTextEditText CompletionItem (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods textEditText :: Lens' CompletionItem (Maybe Text) #
HasTokenModifiers SemanticTokensClientCapabilities [Text] |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods tokenModifiers :: Lens' SemanticTokensClientCapabilities [Text] #
HasTokenModifiers SemanticTokensLegend [Text] |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods tokenModifiers :: Lens' SemanticTokensLegend [Text] #
HasTokenTypes SemanticTokensClientCapabilities [Text] |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods tokenTypes :: Lens' SemanticTokensClientCapabilities [Text] #
HasTokenTypes SemanticTokensLegend [Text] |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods tokenTypes :: Lens' SemanticTokensLegend [Text] #
HasTooltip DocumentLink (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods tooltip :: Lens' DocumentLink (Maybe Text) #
HasTooltip InlayHint (Maybe (Text |? MarkupContent)) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods tooltip :: Lens' InlayHint (Maybe (Text |? MarkupContent)) #
HasTooltip InlayHintLabelPart (Maybe (Text |? MarkupContent)) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods tooltip :: Lens' InlayHintLabelPart (Maybe (Text |? MarkupContent)) #
HasTriggerCharacter CompletionContext (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods triggerCharacter :: Lens' CompletionContext (Maybe Text) #
HasTriggerCharacter SignatureHelpContext (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods triggerCharacter :: Lens' SignatureHelpContext (Maybe Text) #
HasTriggerCharacters CompletionOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods triggerCharacters :: Lens' CompletionOptions (Maybe [Text]) #
HasTriggerCharacters CompletionRegistrationOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods triggerCharacters :: Lens' CompletionRegistrationOptions (Maybe [Text]) #
HasTriggerCharacters SignatureHelpOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods triggerCharacters :: Lens' SignatureHelpOptions (Maybe [Text]) #
HasTriggerCharacters SignatureHelpRegistrationOptions (Maybe [Text]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods triggerCharacters :: Lens' SignatureHelpRegistrationOptions (Maybe [Text]) #
HasVariableName InlineValueVariableLookup (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods variableName :: Lens' InlineValueVariableLookup (Maybe Text) #
HasVerbose LogTraceParams (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods verbose :: Lens' LogTraceParams (Maybe Text) #
HasVersion MarkdownClientCapabilities (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods version :: Lens' MarkdownClientCapabilities (Maybe Text) #
HasVersion RegularExpressionsClientCapabilities (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods version :: Lens' RegularExpressionsClientCapabilities (Maybe Text) #
HasWordPattern LinkedEditingRanges (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods wordPattern :: Lens' LinkedEditingRanges (Maybe Text) #
HasId CancelParams (Int32 |? Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods id :: Lens' CancelParams (Int32 |? Text) #
HasLabel InlayHint (Text |? [InlayHintLabelPart]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods label :: Lens' InlayHint (Text |? [InlayHintLabelPart]) #
HasLabel ParameterInformation (Text |? (UInt, UInt)) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods label :: Lens' ParameterInformation (Text |? (UInt, UInt)) #
HasNotebook NotebookCellTextDocumentFilter (Text |? NotebookDocumentFilter) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods notebook :: Lens' NotebookCellTextDocumentFilter (Text |? NotebookDocumentFilter) #
Stream (NoShareInput Text) |

Instance details

Defined in Text.Megaparsec.Stream

Associated Types

type Token (NoShareInput Text) #

type Tokens (NoShareInput 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) #

type Tokens (ShareInput 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 #

Represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a resource.

Constructors

Diagnostic |

Fields

- _range :: Range

  The range at which the message applies

- _severity :: Maybe DiagnosticSeverity

  The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.

- _code :: Maybe (Int32 |? Text)

  The diagnostic's code, which usually appear in the user interface.

- _codeDescription :: Maybe CodeDescription

  An optional property to describe the error code. Requires the code field (above) to be present/not null.

  Since: lsp-types-3.16.0

- _source :: Maybe Text

  A human-readable string describing the source of this diagnostic, e.g. `typescript` or 'super lint'. It usually appears in the user interface.

- _message :: Text

  The diagnostic's message. It usually appears in the user interface

- _tags :: Maybe [DiagnosticTag]

  Additional metadata about the diagnostic.

  Since: lsp-types-3.15.0

- _relatedInformation :: Maybe [DiagnosticRelatedInformation]

  An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.

- _data_ :: Maybe Value

  A data entry field that is preserved between a `textDocument/publishDiagnostics` notification and `textDocument/codeAction` request.

  Since: lsp-types-3.16.0

#### 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 :: Type -> Type 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.Internal.Lens Methods message :: Lens' Diagnostic Text #
HasRange Diagnostic Range |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods range :: Lens' Diagnostic Range #
HasCode Diagnostic (Maybe (Int32 |? Text)) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods code :: Lens' Diagnostic (Maybe (Int32 |? Text)) #
HasCodeDescription Diagnostic (Maybe CodeDescription) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods codeDescription :: Lens' Diagnostic (Maybe CodeDescription) #
HasData_ Diagnostic (Maybe Value) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods data_ :: Lens' Diagnostic (Maybe Value) #
HasDiagnostics CodeAction (Maybe [Diagnostic]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods diagnostics :: Lens' CodeAction (Maybe [Diagnostic]) #
HasDiagnostics CodeActionContext [Diagnostic] |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods diagnostics :: Lens' CodeActionContext [Diagnostic] #
HasDiagnostics PublishDiagnosticsParams [Diagnostic] |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods diagnostics :: Lens' PublishDiagnosticsParams [Diagnostic] #
HasItems FullDocumentDiagnosticReport [Diagnostic] |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods items :: Lens' FullDocumentDiagnosticReport [Diagnostic] #
HasItems RelatedFullDocumentDiagnosticReport [Diagnostic] |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods items :: Lens' RelatedFullDocumentDiagnosticReport [Diagnostic] #
HasItems WorkspaceFullDocumentDiagnosticReport [Diagnostic] |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods items :: Lens' WorkspaceFullDocumentDiagnosticReport [Diagnostic] #
HasRelatedInformation Diagnostic (Maybe [DiagnosticRelatedInformation]) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods relatedInformation :: Lens' Diagnostic (Maybe [DiagnosticRelatedInformation]) #
HasSeverity Diagnostic (Maybe DiagnosticSeverity) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods severity :: Lens' Diagnostic (Maybe DiagnosticSeverity) #
HasSource Diagnostic (Maybe Text) |
Instance details Defined in Language.LSP.Protocol.Internal.Lens Methods source :: Lens' Diagnostic (Maybe Text) #
HasTags Diagnostic (Maybe [DiagnosticTag]) |
Instance details Defined in Language.LSP.Protocol.Internal.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.0.2.0-6ldEQfFkAQaDyl5nknNRSX" '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)))))))