swarm-0.5.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.App

Description

Main entry point for the Swarm application.

Synopsis

Documentation

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.

demoWeb :: IO () Source #

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.