highlight-1.0.0.1: Command line tool for highlighting parts of files matching a regex.

Safe HaskellNone
LanguageHaskell2010

Highlight.Highlight.Monad

Synopsis

Documentation

data FromGrepFilenameState Source #

The internal state that is used to figure out how to color filenames from grep.

updateFilenameM :: MonadState FromGrepFilenameState m => ByteString -> m Int Source #

Call updateFilename and return the new file number after doing the update.

updateFilename :: ByteString -> FromGrepFilenameState -> FromGrepFilenameState Source #

Update the file number in FromGrepFilenameState if the ByteString filename passed in is different from that in FromGrepFilenameState.