Copyright | (c) Mesabloo 2021-2022 |
---|---|
License | BSD3 |
Stability | experimental |
Portability | Portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
Re-exports
A note is a piece of information that is found at the end of a report.
Note msg | A note, which is meant to give valuable information related to the encountered error. |
Hint msg | A hint, to propose potential fixes or help towards fixing the issue. |
The type of markers with abstract message type, shown under code lines.
This msg | A red or yellow marker under source code, marking important parts of the code. |
Where msg | A blue marker symbolizing additional information. |
Maybe msg | A magenta marker to report potential fixes. |
Blank | An empty marker, whose sole purpose is to include a line of code in the report without markers under. |
Instances
Eq (Marker msg) Source # | |
Ord (Marker msg) Source # | |
Defined in Error.Diagnose.Report.Internal |
data Report msg where Source #
The type of diagnostic reports with abstract message type.
pattern Warn :: Maybe msg -> msg -> [(Position, Marker msg)] -> [Note msg] -> Report msg | Pattern synonym for a warning report. |
pattern Err :: Maybe msg -> msg -> [(Position, Marker msg)] -> [Note msg] -> Report msg | Pattern synonym for an error report. |
warningToError :: Report msg -> Report msg Source #
Transforms a warning report into an error report.
errorToWarning :: Report msg -> Report msg Source #
Transforms an error report into a warning report.