Copyright | Brent Yorgey |
---|---|
License | BSD-3-Clause |
Maintainer | byorgey@gmail.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Main entry point for the Swarm application.
Synopsis
- type EventHandler = BrickEvent Name AppEvent -> EventM Name AppState ()
- app :: EventHandler -> App AppState AppEvent Name
- appMain :: AppOpts -> IO ()
- demoWeb :: IO ()
- enablePasteMode :: EventM n s ()
Documentation
type EventHandler = BrickEvent Name AppEvent -> EventM Name AppState () Source #
app :: EventHandler -> App AppState AppEvent Name Source #
The definition of the app used by the brick
library.
appMain :: AppOpts -> IO () Source #
The main IO
computation which initializes the state, sets up
some communication channels, and runs the UI.
A demo program to run the web service directly, without the terminal application. This is useful to live update the code using `ghcid -W --test "Swarm.App.demoWeb"`
enablePasteMode :: EventM n s () Source #
If available for the terminal emulator, enable bracketed paste mode.