Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | Edward Kmett <ekmett@gmail.com> |
A fairly straightforward set of common error levels.
Documentation
data DiagnosticLevel Source
The severity of an error (or message)
Verbose !Int | a comment we should only show to the excessively curious |
Note | a comment |
Warning | a warning, computation continues |
Error | a user specified error |
Fatal | a user specified fatal error |
Panic | a non-maskable death sentence thrown by the parser itself |
Eq DiagnosticLevel | |
Ord DiagnosticLevel | |
Read DiagnosticLevel | |
Show DiagnosticLevel | |
Semigroup DiagnosticLevel | Compute the maximum of two diagnostic levels |
Pretty DiagnosticLevel | |
PrettyTerm DiagnosticLevel | pretty print as a color coded description |