homplexity

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Homplexity.Message

Synopsis

Documentation

data Log

Keeps a set of messages

Instances

data Message

Message from analysis

severityOptions :: String

String showing all possible values for Severity.

critical :: SrcLoc -> String -> Log

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

warn :: SrcLoc -> String -> Log

Log a warning

info :: SrcLoc -> String -> Log

Log informational message

debug :: SrcLoc -> String -> Log

Log debugging message

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

Helper for logging a message with given severity.

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

Extract an ordered sequence of messages from the Log.