Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Development.IDE.Test.Diagnostic
Synopsis
- type Cursor = (UInt, UInt)
- cursorPosition :: Cursor -> Position
- type ErrorMsg = String
- type ExpectedDiagnostic = (DiagnosticSeverity, Cursor, Text, Maybe Text)
- type ExpectedDiagnosticWithTag = (DiagnosticSeverity, Cursor, Text, Maybe Text, Maybe DiagnosticTag)
- requireDiagnostic :: (Foldable f, Show (f Diagnostic), HasCallStack) => f Diagnostic -> ExpectedDiagnosticWithTag -> Maybe ErrorMsg
- standardizeQuotes :: Text -> Text
Documentation
cursorPosition :: Cursor -> Position Source #
type ExpectedDiagnostic = (DiagnosticSeverity, Cursor, Text, Maybe Text) Source #
Expected diagnostics have the following components:
- severity
- cursor (line and column numbers)
- infix of the message
- code (e.g. GHC-87543)
type ExpectedDiagnosticWithTag = (DiagnosticSeverity, Cursor, Text, Maybe Text, Maybe DiagnosticTag) Source #
Expected diagnostics with a tag have the following components:
- severity
- cursor (line and column numbers)
- infix of the message
- code (e.g. GHC-87543)
- tag (unnecessary or deprecated)
requireDiagnostic :: (Foldable f, Show (f Diagnostic), HasCallStack) => f Diagnostic -> ExpectedDiagnosticWithTag -> Maybe ErrorMsg Source #
standardizeQuotes :: Text -> Text Source #