Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- startUp :: Configuration -> Bar Marshalled -> App StartingUp (Bar Initialized, Subscriptions, BarRuntime, ClickableAreas)
- mkBarRuntime :: Configuration -> App StartingUp BarRuntime
- initialize :: Bar Marshalled -> App StartingUp (Bar Initialized)
- isImageContents :: Text -> Bool
- mkThread :: [(String, String)] -> BarRuntime -> Source -> IORef Text -> Cache -> Text -> App StartingUp ()
- runSourceProcess :: CreateProcess -> IORef Text -> Cache -> Text -> IO ()
- collectSources :: Bar Initialized -> App Forked AST
- escapeMarkup :: Bool -> Text -> Text
- allButtons :: [Button]
Documentation
startUp :: Configuration -> Bar Marshalled -> App StartingUp (Bar Initialized, Subscriptions, BarRuntime, ClickableAreas) Source #
initialize :: Bar Marshalled -> App StartingUp (Bar Initialized) Source #
During initialization, IORefs for source outputs and caches are created. Also, new threads for each unique source is created. These threads then update the outputs.
isImageContents :: Text -> Bool Source #
mkThread :: [(String, String)] -> BarRuntime -> Source -> IORef Text -> Cache -> Text -> App StartingUp () Source #
Run source process either once or forever, depending on source settings.
runSourceProcess :: CreateProcess -> IORef Text -> Cache -> Text -> IO () Source #
Creates a process, subscribes to its stdout handle and updates the output ref.
collectSources :: Bar Initialized -> App Forked AST Source #
Reads outputs of SourceHandle
s and puts them into an AST.
allButtons :: [Button] Source #