Copyright | (c) Mesabloo 2021 |
---|---|
License | BSD3 |
Stability | experimental |
Portability | Portable |
Safe Haskell | None |
Language | Haskell2010 |
Re-exports
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. |
Instances
Eq (Marker msg) Source # | |
Ord (Marker msg) Source # | |
Defined in Error.Diagnose.Report.Internal |
The type of diagnostic reports with abstract message type.
:: Maybe msg | An optional error code to be shown right next to "error" or "warning". |
-> msg | The report message, shown at the very top. |
-> [(Position, Marker msg)] | A list associating positions with markers. |
-> [msg] | A possibly mempty list of hints to add at the end of the report. |
-> Report msg |
Constructs a warning or an error report.
:: Maybe msg | An optional error code to be shown right next to "error" or "warning". |
-> msg | The report message, shown at the very top. |
-> [(Position, Marker msg)] | A list associating positions with markers. |
-> [msg] | A possibly mempty list of hints to add at the end of the report. |
-> Report msg |
Constructs a warning or an error report.