Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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.
class HasIgnoreCase r where Source #
ignoreCaseLens :: Lens' r IgnoreCase Source #
ignoreCaseLens :: HasCommonOptions r => Lens' r IgnoreCase Source #
Whether or not files should be searched recursively. Similar to grep
's
--recursive
option.
class HasRecursive r where Source #
recursiveLens :: Lens' r Recursive Source #
recursiveLens :: HasCommonOptions r => Lens' r Recursive Source #
The raw, pre-compiled regular expression passed in on the command line by the user.
class HasRawRegex r where Source #
rawRegexLens :: Lens' r RawRegex Source #
rawRegexLens :: HasCommonOptions r => Lens' r RawRegex Source #
newtype InputFilename Source #
An input file passed in on the command line by the user.
class HasInputFilenames r where Source #
inputFilenamesLens :: Lens' r [InputFilename] Source #
inputFilenamesLens :: HasCommonOptions r => Lens' r [InputFilename] Source #
data CommonOptions Source #
A set of options that are common to both the highlight
and hrep
applications.
class HasCommonOptions r where Source #
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