cimple-0.0.8: Simple C-like programming language
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Cimple.Diagnostics

Documentation

type Diagnostics a = DiagnosticsT [Text] a Source #

class HasDiagnostics a where Source #

Methods

addDiagnostic :: Text -> a -> a Source #

Instances

Instances details
HasDiagnostics [Text] Source # 
Instance details

Defined in Language.Cimple.Diagnostics

Methods

addDiagnostic :: Text -> [Text] -> [Text] Source #

warn :: (HasLocation at, HasDiagnostics diags) => FilePath -> at -> Text -> DiagnosticsT diags () Source #

warn' :: (HasLocation at, HasDiagnostics diags) => FilePath -> at -> Text -> DiagnosticsT diags () Source #

sloc :: HasLocation a => FilePath -> a -> Text Source #