Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

LogView.Process

Contents

Synopsis

state

data State Source #

Constructors

State 

Fields

Instances

compile_filter :: Text -> Filter Source #

Compile a simple filter language. A log msg matches if all of the words in the filter occur within its Log.msg_text, and none of the words prefixed by - occur.

process_msg

process_msg :: State -> Log.Msg -> (Maybe StyledText, State) Source #

Process an incoming log msg. If the msg isn't filtered out, returned a colorized version. Also possibly modify the app state for things like catch and timing.

type CatchPattern = (Text, Regex.Regex) Source #

Extract text from a log msg and put it in state_status, via catch_regexes.

data StyledText Source #

Constructors

StyledText 

Fields

flatten_ranges :: a -> [((Int, Int), a)] -> [(Int, a)] Source #

regex_style :: Style -> [(Regex.Regex, Style)] -> Text -> Formatter Source #