Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data IgnoreCase
- class HasIgnoreCase r where
- ignoreCaseParser :: Parser IgnoreCase
- data Recursive
- class HasRecursive r where
- recursiveLens :: Lens' r Recursive
- recursiveParser :: Parser Recursive
- newtype RawRegex = RawRegex {
- unRawRegex :: String
- class HasRawRegex r where
- rawRegexLens :: Lens' r RawRegex
- rawRegexParser :: Parser RawRegex
- newtype InputFilename = InputFilename {}
- class HasInputFilenames r where
- inputFilenamesLens :: Lens' r [InputFilename]
- 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.
Instances
Eq IgnoreCase Source # | |
Defined in Highlight.Common.Options (==) :: IgnoreCase -> IgnoreCase -> Bool # (/=) :: IgnoreCase -> IgnoreCase -> Bool # | |
Read IgnoreCase Source # | |
Defined in Highlight.Common.Options readsPrec :: Int -> ReadS IgnoreCase # readList :: ReadS [IgnoreCase] # readPrec :: ReadPrec IgnoreCase # readListPrec :: ReadPrec [IgnoreCase] # | |
Show IgnoreCase Source # | |
Defined in Highlight.Common.Options showsPrec :: Int -> IgnoreCase -> ShowS # show :: IgnoreCase -> String # showList :: [IgnoreCase] -> ShowS # |
class HasIgnoreCase r where Source #
Nothing
ignoreCaseLens :: Lens' r IgnoreCase Source #
default ignoreCaseLens :: HasCommonOptions r => Lens' r IgnoreCase Source #
Instances
Whether or not files should be searched recursively. Similar to grep
's
--recursive
option.
class HasRecursive r where Source #
Nothing
recursiveLens :: Lens' r Recursive Source #
default recursiveLens :: HasCommonOptions r => Lens' r Recursive Source #
Instances
The raw, pre-compiled regular expression passed in on the command line by the user.
class HasRawRegex r where Source #
Nothing
rawRegexLens :: Lens' r RawRegex Source #
default rawRegexLens :: HasCommonOptions r => Lens' r RawRegex Source #
Instances
HasRawRegex CommonOptions Source # | |
Defined in Highlight.Common.Options | |
HasRawRegex Options Source # | |
Defined in Highlight.Highlight.Options |
newtype InputFilename Source #
An input file passed in on the command line by the user.
Instances
Eq InputFilename Source # | |
Defined in Highlight.Common.Options (==) :: InputFilename -> InputFilename -> Bool # (/=) :: InputFilename -> InputFilename -> Bool # | |
Read InputFilename Source # | |
Defined in Highlight.Common.Options readsPrec :: Int -> ReadS InputFilename # readList :: ReadS [InputFilename] # | |
Show InputFilename Source # | |
Defined in Highlight.Common.Options showsPrec :: Int -> InputFilename -> ShowS # show :: InputFilename -> String # showList :: [InputFilename] -> ShowS # | |
IsString InputFilename Source # | |
Defined in Highlight.Common.Options fromString :: String -> InputFilename # |
class HasInputFilenames r where Source #
Nothing
inputFilenamesLens :: Lens' r [InputFilename] Source #
default 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.
Instances
Eq CommonOptions Source # | |
Defined in Highlight.Common.Options (==) :: CommonOptions -> CommonOptions -> Bool # (/=) :: CommonOptions -> CommonOptions -> Bool # | |
Read CommonOptions Source # | |
Defined in Highlight.Common.Options readsPrec :: Int -> ReadS CommonOptions # readList :: ReadS [CommonOptions] # | |
Show CommonOptions Source # | |
Defined in Highlight.Common.Options showsPrec :: Int -> CommonOptions -> ShowS # show :: CommonOptions -> String # showList :: [CommonOptions] -> ShowS # | |
HasCommonOptions CommonOptions Source # | |
Defined in Highlight.Common.Options | |
HasInputFilenames CommonOptions Source # | |
Defined in Highlight.Common.Options | |
HasRawRegex CommonOptions Source # | |
Defined in Highlight.Common.Options | |
HasRecursive CommonOptions Source # | |
Defined in Highlight.Common.Options | |
HasIgnoreCase CommonOptions Source # | |
Defined in Highlight.Common.Options |
class HasCommonOptions r where Source #
Instances
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