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

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

Text.Trifecta.Diagnostic.Class

Description

Provides a class for logging and throwing expressive diagnostics.

Documentation

class Monad m => MonadDiagnostic e m | m -> e whereSource

Methods

fatalWith :: [Diagnostic e] -> [Rendering] -> e -> m aSource

errWith :: [Diagnostic e] -> [Rendering] -> e -> m aSource

logWith :: DiagnosticLevel -> [Diagnostic e] -> [Rendering] -> e -> m ()Source