Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- errorDiagnostic :: NormalizedFilePath -> PError -> FileDiagnostic
- warningDiagnostic :: NormalizedFilePath -> PWarning -> FileDiagnostic
- positionFromCabalPosition :: Position -> Position
- 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
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 #
Diagnostic | |
|