hls-test-utils-2.10.0.0: Utilities used in the tests of Haskell Language Server
Safe HaskellSafe-Inferred
LanguageGHC2021

Development.IDE.Test.Diagnostic

Synopsis

Documentation

type Cursor = (UInt, UInt) Source #

(0-based line number, 0-based column number)

type ExpectedDiagnostic = (DiagnosticSeverity, Cursor, Text, Maybe Text) Source #

Expected diagnostics have the following components:

  1. severity
  2. cursor (line and column numbers)
  3. infix of the message
  4. code (e.g. GHC-87543)

type ExpectedDiagnosticWithTag = (DiagnosticSeverity, Cursor, Text, Maybe Text, Maybe DiagnosticTag) Source #

Expected diagnostics with a tag have the following components:

  1. severity
  2. cursor (line and column numbers)
  3. infix of the message
  4. code (e.g. GHC-87543)
  5. tag (unnecessary or deprecated)