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

Safe HaskellNone
LanguageHaskell2010

Highlight.Common.Options

Synopsis

Documentation

data IgnoreCase Source #

Whether or not the case of a regular expression should be ignored. Similar to grep's --ignore-case option.

data Recursive Source #

Whether or not files should be searched recursively. Similar to grep's --recursive option.

Constructors

Recursive 
NotRecursive 

newtype RawRegex Source #

The raw, pre-compiled regular expression passed in on the command line by the user.

Constructors

RawRegex 

Fields

defaultCommonOptions :: CommonOptions Source #

A default set of CommonOptions. Defined as the following:

>>> :{
let opts =
      CommonOptions
        { commonOptionsIgnoreCase = DoNotIgnoreCase
        , commonOptionsRecursive = NotRecursive
        , commonOptionsRawRegex = RawRegex { unRawRegex = "" }
        , commonOptionsInputFilenames = []
        }
:}
>>> opts == defaultCommonOptions
True