vgrep-0.2.3.0: A pager for grep
Safe HaskellNone
LanguageHaskell2010

Vgrep.Environment

Synopsis

Documentation

data Environment Source #

VgrepT actions can read from the environment.

Constructors

Env 

Fields

  • _config :: Config

    External configuration (colors, editor executable, …)

  • _viewport :: Viewport

    The bounds (width and height) of the display viewport where the App or the current Widget is displayed

Instances

Instances details
Eq Environment Source # 
Instance details

Defined in Vgrep.Environment

Show Environment Source # 
Instance details

Defined in Vgrep.Environment

Monad m => MonadReader Environment (VgrepT s m) Source #

VgrepT can read from the Environment. Modifications to the enviromnent are only possible globally (see modifyEnvironment), the local environment is pure.

Instance details

Defined in Vgrep.Type

Methods

ask :: VgrepT s m Environment #

local :: (Environment -> Environment) -> VgrepT s m a -> VgrepT s m a #

reader :: (Environment -> a) -> VgrepT s m a #

data Viewport Source #

The bounds (width and height) of a display viewport.

Constructors

Viewport 

Fields

Instances

Instances details
Eq Viewport Source # 
Instance details

Defined in Vgrep.Environment

Show Viewport Source # 
Instance details

Defined in Vgrep.Environment

Auto-generated Lenses

Convenience Lenses

Re-exports