highlight-1.0.0.2: 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.

class HasIgnoreCase r where Source #

Minimal complete definition

Nothing

data Recursive Source #

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

Constructors

Recursive 
NotRecursive 

Instances

Instances details
Eq Recursive Source # 
Instance details

Defined in Highlight.Common.Options

Read Recursive Source # 
Instance details

Defined in Highlight.Common.Options

Show Recursive Source # 
Instance details

Defined in Highlight.Common.Options

class HasRecursive r where Source #

Minimal complete definition

Nothing

newtype RawRegex Source #

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

Constructors

RawRegex 

Fields

Instances

Instances details
Eq RawRegex Source # 
Instance details

Defined in Highlight.Common.Options

Read RawRegex Source # 
Instance details

Defined in Highlight.Common.Options

Show RawRegex Source # 
Instance details

Defined in Highlight.Common.Options

IsString RawRegex Source # 
Instance details

Defined in Highlight.Common.Options

class HasRawRegex r where Source #

Minimal complete definition

Nothing

newtype InputFilename Source #

An input file passed in on the command line by the user.

Constructors

InputFilename 

data CommonOptions Source #

A set of options that are common to both the highlight and hrep applications.

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