Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data PipeCommand
- launchEventListener :: Subscriptions -> ClickableAreas -> App Forked ()
- processSubscriptions :: BarRuntime -> Scope -> Event -> [Subscription] -> IO ()
- runStateVariableSetter :: BarRuntime -> Scope -> AutomatonAddress -> AutomatonState -> IO ()
- runHooks :: [(String, String)] -> BarRuntime -> Scope -> [Hook] -> MaybeT IO ()
- parsePipeCommand :: String -> Maybe PipeCommand
- type Parser = Parsec Void String
- routedEventParser :: Parser PipeCommand
- buttonParser :: Parser Button
- automatonAddressParser :: Parser Text
- eventParser :: Parser Text
- capitalized :: Parser Text
- camelCased :: Parser Text
- scopeParser :: Parser Text
- clickParser :: Parser PipeCommand
Documentation
data PipeCommand Source #
Instances
Eq PipeCommand Source # | |
Defined in DzenDhall.Event (==) :: PipeCommand -> PipeCommand -> Bool # (/=) :: PipeCommand -> PipeCommand -> Bool # | |
Show PipeCommand Source # | |
Defined in DzenDhall.Event showsPrec :: Int -> PipeCommand -> ShowS # show :: PipeCommand -> String # showList :: [PipeCommand] -> ShowS # |
launchEventListener :: Subscriptions -> ClickableAreas -> App Forked () Source #
Start reading lines from a named pipe used to route events. On each event, try to parse it, and find which event subscriptions does the event affect.
processSubscriptions :: BarRuntime -> Scope -> Event -> [Subscription] -> IO () Source #
runStateVariableSetter :: BarRuntime -> Scope -> AutomatonAddress -> AutomatonState -> IO () Source #
Set a variable named STATE_address
routedEventParser :: Parser PipeCommand Source #
E.g.
parseMaybe routedEventParser "event:MouseLeft@some-scope" == Just (RoutedEvent (MouseEvent MouseLeft) "some-scope")
eventParser :: Parser Text Source #
capitalized :: Parser Text Source #
camelCased :: Parser Text Source #
scopeParser :: Parser Text Source #