Safe Haskell | None |
---|---|
Language | Haskell98 |
Used for management of applications.
Synopsis
- data AppManager
- data Action
- perform :: AppManager -> AppId -> Action -> IO ()
- reloadAppList :: AppManager -> Map Appname (FilePath, EpochTime) -> IO ()
- addApp :: AppManager -> FilePath -> IO ()
- terminateApp :: AppManager -> Appname -> IO ()
- initialize :: (LogMessage -> IO ()) -> AppStartConfig -> IO AppManager
- renderApps :: AppManager -> STM Text
Types
data AppManager Source #
Actions
reloadAppList :: AppManager -> Map Appname (FilePath, EpochTime) -> IO () Source #
Reset which apps are running.
- Any app not listed here that is currently running will be terminated.
- Any app listed here that is currently running will be reloaded.
- Any app listed here that is not currently running will be started.
terminateApp :: AppManager -> Appname -> IO () Source #
Initialize
initialize :: (LogMessage -> IO ()) -> AppStartConfig -> IO AppManager Source #
Show
renderApps :: AppManager -> STM Text Source #