matterhorn-50200.17.0: Terminal client for the Mattermost chat system
Safe HaskellNone
LanguageHaskell2010

Matterhorn.Draw.Util

Synopsis

Documentation

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.

keyEventBindings Source #

Arguments

:: ChatState

The current application state

-> (KeyConfig -> KeyHandlerMap)

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.