Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- errorDiagnostic :: NormalizedFilePath -> PError -> FileDiagnostic
- warningDiagnostic :: NormalizedFilePath -> PWarning -> FileDiagnostic
- positionFromCabalPosition :: Position -> Position
- fatalParseErrorDiagnostic :: NormalizedFilePath -> Text -> FileDiagnostic
- type FileDiagnostic = (NormalizedFilePath, ShowDiagnostic, Diagnostic)
- data Diagnostic = Diagnostic {}
Documentation
errorDiagnostic :: NormalizedFilePath -> PError -> FileDiagnostic Source #
Produce a diagnostic from a Cabal parser error
warningDiagnostic :: NormalizedFilePath -> PWarning -> FileDiagnostic Source #
Produce a diagnostic from a Cabal parser warning
fatalParseErrorDiagnostic :: NormalizedFilePath -> Text -> FileDiagnostic Source #
Produce a diagnostic for a fatal Cabal parser error.
Re-exports
type FileDiagnostic = (NormalizedFilePath, ShowDiagnostic, Diagnostic) #
Human readable diagnostics for a specific file.
This type packages a pretty printed, human readable error message along with the related source location so that we can display the error on either the console or in the IDE at the right source location.
data Diagnostic #