Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- withBrackets :: Widget a -> Widget a
- renderTime :: ChatState -> UTCTime -> Widget Name
- renderDate :: ChatState -> UTCTime -> Widget Name
- renderKeybindingHelp :: ChatState -> Text -> [KeyEvent] -> Widget Name
- insertDateMarkers :: Messages -> Text -> TimeZoneSeries -> Messages
- getDateFormat :: ChatState -> Text
- mkChannelName :: ChatState -> ChannelInfo -> Text
- userSigilFromInfo :: UserInfo -> Char
- multilineHeightLimit :: Int
- keyEventBindings :: ChatState -> (KeyConfig KeyEvent -> KeyDispatcher KeyEvent MH) -> KeyEvent -> Text
Documentation
withBrackets :: Widget a -> Widget a Source #
insertDateMarkers :: Messages -> Text -> TimeZoneSeries -> Messages Source #
Modifies a message sequence by inserting date transition markers in between messages with different creation dates. Server dates from messages are converted to local time (via the current timezone) and midnight of that timezone used to generate date markers.
getDateFormat :: ChatState -> Text Source #
mkChannelName :: ChatState -> ChannelInfo -> Text Source #
userSigilFromInfo :: UserInfo -> Char Source #
:: ChatState | The current application state |
-> (KeyConfig KeyEvent -> KeyDispatcher KeyEvent MH) | The function to obtain the relevant key handler map |
-> KeyEvent | The key event to look up |
-> Text |
Resolve the specified key event into a pretty-printed representation of the active bindings for that event, using the specified key handler map builder. If the event has more than one active binding, the bindings are comma-delimited in the resulting string.