trifecta-0.41: A modern parser combinator library with convenient diagnostics

Portabilitynon-portable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>

Text.Trifecta.Diagnostic.Level

Description

A fairly straightforward set of common error levels.

Synopsis

Documentation

data DiagnosticLevel Source

The severity of an error (or message)

Constructors

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

Instances

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