llvm-hs-6.0.0: General purpose LLVM bindings

Safe HaskellSafe
LanguageHaskell98

LLVM.Diagnostic

Description

Diagnostics describe parse errors

Synopsis

Documentation

data DiagnosticKind Source #

What kind of problem does a diagnostic describe?

Instances

Eq DiagnosticKind Source # 
Data DiagnosticKind Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DiagnosticKind -> c DiagnosticKind #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DiagnosticKind #

toConstr :: DiagnosticKind -> Constr #

dataTypeOf :: DiagnosticKind -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DiagnosticKind) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DiagnosticKind) #

gmapT :: (forall b. Data b => b -> b) -> DiagnosticKind -> DiagnosticKind #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DiagnosticKind -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DiagnosticKind -> r #

gmapQ :: (forall d. Data d => d -> u) -> DiagnosticKind -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DiagnosticKind -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DiagnosticKind -> m DiagnosticKind #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DiagnosticKind -> m DiagnosticKind #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DiagnosticKind -> m DiagnosticKind #

Ord DiagnosticKind Source # 
Read DiagnosticKind Source # 
Show DiagnosticKind Source # 
Generic DiagnosticKind Source # 

Associated Types

type Rep DiagnosticKind :: * -> * #

type Rep DiagnosticKind Source # 
type Rep DiagnosticKind = D1 * (MetaData "DiagnosticKind" "LLVM.Diagnostic" "llvm-hs-6.0.0-EjgSsky2697DZDcRDj9Ond" False) ((:+:) * (C1 * (MetaCons "ErrorKind" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "WarningKind" PrefixI False) (U1 *)) (C1 * (MetaCons "NoteKind" PrefixI False) (U1 *))))

diagnosticDisplay :: Diagnostic -> String Source #

Convert a Diagnostic to a printable form.