Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data App e s = App {
- initialize :: forall m. MonadIO m => m s
- liftEvent :: Event -> e
- handleEvent :: forall m. MonadIO m => e -> Environment -> s -> Next (VgrepT s m Redraw)
- render :: forall m. Monad m => VgrepT s m Picture
- runApp :: App e s -> Config -> Producer e IO () -> IO s
- runApp_ :: App e s -> Config -> Producer e IO () -> IO ()
Documentation
The App
type is parameterized over the type e
of events it handles
and the type s
of its state.
App | |
|