Safe Haskell | None |
---|---|
Language | Haskell2010 |
Highlight.Common.Options
- data IgnoreCase
- class HasIgnoreCase r where
- ignoreCaseParser :: Parser IgnoreCase
- data Recursive
- class HasRecursive r where
- recursiveParser :: Parser Recursive
- newtype RawRegex = RawRegex {
- unRawRegex :: String
- class HasRawRegex r where
- rawRegexParser :: Parser RawRegex
- newtype InputFilename = InputFilename {}
- class HasInputFilenames r where
- inputFilenamesParser :: Parser [InputFilename]
- data CommonOptions = CommonOptions {}
- class HasCommonOptions r where
- commonOptionsParser :: Parser CommonOptions
- defaultCommonOptions :: CommonOptions
Documentation
data IgnoreCase Source #
Whether or not the case of a regular expression should be ignored.
Similar to grep
's --ignore-case
option.
Constructors
IgnoreCase | |
DoNotIgnoreCase |
Instances
class HasIgnoreCase r where Source #
Methods
ignoreCaseLens :: Lens' r IgnoreCase Source #
ignoreCaseLens :: HasCommonOptions r => Lens' r IgnoreCase Source #
Instances
Whether or not files should be searched recursively. Similar to grep
's
--recursive
option.
Constructors
Recursive | |
NotRecursive |
class HasRecursive r where Source #
Methods
recursiveLens :: Lens' r Recursive Source #
recursiveLens :: HasCommonOptions r => Lens' r Recursive Source #
Instances
The raw, pre-compiled regular expression passed in on the command line by the user.
Constructors
RawRegex | |
Fields
|
class HasRawRegex r where Source #
Methods
rawRegexLens :: Lens' r RawRegex Source #
rawRegexLens :: HasCommonOptions r => Lens' r RawRegex Source #
Instances
newtype InputFilename Source #
An input file passed in on the command line by the user.
Constructors
InputFilename | |
Fields |
Instances
class HasInputFilenames r where Source #
Methods
inputFilenamesLens :: Lens' r [InputFilename] Source #
inputFilenamesLens :: HasCommonOptions r => Lens' r [InputFilename] Source #
Instances
data CommonOptions Source #
A set of options that are common to both the highlight
and hrep
applications.
Constructors
CommonOptions | |
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