vgrep-0.2.3.0: A pager for grep
Safe HaskellNone
LanguageHaskell2010

Vgrep.Environment.Config

Synopsis

Types

data Config Source #

Constructors

Config 

Fields

Instances

Instances details
Eq Config Source # 
Instance details

Defined in Vgrep.Environment.Config

Methods

(==) :: Config -> Config -> Bool #

(/=) :: Config -> Config -> Bool #

Show Config Source # 
Instance details

Defined in Vgrep.Environment.Config

data Colors Source #

Constructors

Colors 

Fields

Instances

Instances details
Eq Colors Source # 
Instance details

Defined in Vgrep.Environment.Config

Methods

(==) :: Colors -> Colors -> Bool #

(/=) :: Colors -> Colors -> Bool #

Show Colors Source # 
Instance details

Defined in Vgrep.Environment.Config

data Keybindings Source #

Constructors

Keybindings 

Fields

Instances

Instances details
Eq Keybindings Source # 
Instance details

Defined in Vgrep.Environment.Config

Show Keybindings Source # 
Instance details

Defined in Vgrep.Environment.Config

Auto-generated Lenses

Read Config from Monoid

fromConfigMonoid :: ConfigMonoid -> Config Source #

Convert a ConfigMonoid to a Config. Missing (mempty) values in the ConfigMonoid are supplied from the defaultConfig.

fromFirst :: a -> First a -> a Source #

Default Config

Config Loader

loadConfig Source #

Arguments

:: MonadIO io 
=> ConfigMonoid

External config from command line

-> io Config 

Gathers ConfigMonoids from various sources and builds a Config based on the defaultConfig:

  • Config from environment variables
  • The configuration specified in the config file
  • External config, e.g. from command line

where the latter ones override the earlier ones.