homplexity-0.4.7.0: Haskell code quality tool

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Homplexity.Message

Description

Classifying messages by severity and filtering them.

Synopsis

Documentation

data Log Source #

Keeps a set of messages

Instances
Show Log Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Methods

showsPrec :: Int -> Log -> ShowS #

show :: Log -> String #

showList :: [Log] -> ShowS #

Semigroup Log Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Methods

(<>) :: Log -> Log -> Log #

sconcat :: NonEmpty Log -> Log #

stimes :: Integral b => b -> Log -> Log #

Monoid Log Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Methods

mempty :: Log #

mappend :: Log -> Log -> Log #

mconcat :: [Log] -> Log #

NFData Log Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Methods

rnf :: Log -> () #

data Message Source #

Message from analysis

Instances
Eq Message Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Methods

(==) :: Message -> Message -> Bool #

(/=) :: Message -> Message -> Bool #

Show Message Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

NFData Message Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Methods

rnf :: Message -> () #

ToMarkup Message Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Methods

toMarkup :: Message -> Markup

preEscapedToMarkup :: Message -> Markup

data Severity Source #

Message severity

Constructors

Debug 
Info 
Warning 
Critical 
Instances
Bounded Severity Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Enum Severity Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Eq Severity Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Ord Severity Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Read Severity Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Show Severity Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Lift Severity Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Methods

lift :: Severity -> Q Exp #

NFData Severity Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Methods

rnf :: Severity -> () #

FlagType Severity Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Methods

defineFlag :: String -> Severity -> String -> Q [Dec]

ToMarkup Severity Source # 
Instance details

Defined in Language.Haskell.Homplexity.Message

Methods

toMarkup :: Severity -> Markup

preEscapedToMarkup :: Severity -> Markup

severityOptions :: String Source #

String showing all possible values for Severity.

critical :: SrcLoc -> String -> Log Source #

TODO: automatic inference of the srcLine | Log a certain error

warn :: SrcLoc -> String -> Log Source #

Log a warning

info :: SrcLoc -> String -> Log Source #

Log informational message

debug :: SrcLoc -> String -> Log Source #

Log debugging message

message :: Severity -> SrcLoc -> String -> Log Source #

Helper for logging a message with given severity.

extract :: Severity -> Log -> [Message] Source #

Extract an ordered sequence of messages from the Log.