License | BSD-3-Clause |
---|---|
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 configuration of the Swarm app which we pass to 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.