vgrep-0.2.3.0: A pager for grep
Safe HaskellNone
LanguageHaskell2010

Vgrep.App

Synopsis

Documentation

data App e s Source #

The App type is parameterized over the type e of events it handles and the type s of its state.

Constructors

App 

Fields

runApp :: App e s -> Config -> Producer e IO () -> IO s Source #

Runs runs the event loop until an Interrupt Halt is encountered. Events handled with Interrupt (Suspend action) will shut down Vty, run the action (e. g. invoking an external editor), and start Vty again.

runApp_ :: App e s -> Config -> Producer e IO () -> IO () Source #

Like runApp, but does not return the final state.