Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ColorGrepFilenames
- colorGrepFilenamesParser :: Parser ColorGrepFilenames
- class HasColorGrepFilenames r where
- data Options = Options {}
- defaultOptions :: Options
- optionsParser :: Parser Options
- class HasOptions r where
- optionsLens :: Lens' r Options
- class HasCommonOptions r where
- data CommonOptions
- class HasInputFilenames r where
- inputFilenamesLens :: Lens' r [InputFilename]
- newtype InputFilename = InputFilename {}
- class HasRawRegex r where
- rawRegexLens :: Lens' r RawRegex
- newtype RawRegex = RawRegex String
- class HasRecursive r where
- recursiveLens :: Lens' r Recursive
- data Recursive = Recursive
- class HasIgnoreCase r where
- data IgnoreCase
- commonOptionsParser :: Parser CommonOptions
- defaultCommonOptions :: CommonOptions
Documentation
data ColorGrepFilenames Source #
Whether or not to color filenames output by grep
when reading in from
stdin.
Instances
Eq ColorGrepFilenames Source # | |
Defined in Highlight.Highlight.Options (==) :: ColorGrepFilenames -> ColorGrepFilenames -> Bool # (/=) :: ColorGrepFilenames -> ColorGrepFilenames -> Bool # | |
Read ColorGrepFilenames Source # | |
Defined in Highlight.Highlight.Options | |
Show ColorGrepFilenames Source # | |
Defined in Highlight.Highlight.Options showsPrec :: Int -> ColorGrepFilenames -> ShowS # show :: ColorGrepFilenames -> String # showList :: [ColorGrepFilenames] -> ShowS # |
class HasColorGrepFilenames r where Source #
Instances
Instances
Eq Options Source # | |
Read Options Source # | |
Show Options Source # | |
HasCommonOptions Options Source # | |
Defined in Highlight.Highlight.Options | |
HasInputFilenames Options Source # | |
Defined in Highlight.Highlight.Options | |
HasRawRegex Options Source # | |
Defined in Highlight.Highlight.Options | |
HasRecursive Options Source # | |
Defined in Highlight.Highlight.Options | |
HasIgnoreCase Options Source # | |
Defined in Highlight.Highlight.Options | |
HasOptions Options Source # | |
Defined in Highlight.Highlight.Options | |
HasColorGrepFilenames Options Source # | |
class HasOptions r where Source #
optionsLens :: Lens' r Options Source #
Instances
HasOptions Options Source # | |
Defined in Highlight.Highlight.Options |
class HasCommonOptions r where 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 HasInputFilenames r where Source #
Nothing
inputFilenamesLens :: Lens' r [InputFilename] Source #
default inputFilenamesLens :: HasCommonOptions r => Lens' r [InputFilename] Source #
Instances
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 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 |
The raw, pre-compiled regular expression passed in on the command line by the user.
class HasRecursive r where Source #
Nothing
recursiveLens :: Lens' r Recursive Source #
default recursiveLens :: HasCommonOptions r => Lens' r Recursive Source #
Instances
Whether or not files should be searched recursively. Similar to grep
's
--recursive
option.
class HasIgnoreCase r where Source #
Nothing
ignoreCaseLens :: Lens' r IgnoreCase Source #
default ignoreCaseLens :: HasCommonOptions r => Lens' r IgnoreCase Source #
Instances
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 # |
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