vgrep-0.2.2.0: A pager for grep

Safe HaskellNone
LanguageHaskell2010

Vgrep.Environment

Contents

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

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

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

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

Auto-generated Lenses

Convenience Lenses

Re-exports