Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Name
- = MessageInterfaceMessages Name
- | MessageInput ChannelId
- | MessageInputPrompt Name
- | ChannelListViewport TeamId
- | HelpViewport
- | PostList
- | HelpContent HelpScreen
- | CompletionList Name
- | JoinChannelList TeamId
- | UrlList Name
- | MessagePreviewViewport Name
- | ThemeListSearchInput TeamId
- | UserListSearchInput TeamId
- | JoinChannelListSearchInput TeamId
- | UserListSearchResults TeamId
- | ThemeListSearchResults TeamId
- | ViewMessageArea TeamId
- | ViewMessageReactionsArea TeamId
- | ChannelSidebar TeamId
- | ChannelSelectInput TeamId
- | AttachmentList ChannelId
- | AttachmentFileBrowser ChannelId
- | ReactionEmojiList TeamId
- | ReactionEmojiListInput TeamId
- | TabbedWindowTabBar TeamId
- | MuteToggleField TeamId
- | ChannelMentionsField TeamId
- | DesktopNotificationsField TeamId (WithDefault NotifyOption)
- | PushNotificationsField TeamId (WithDefault NotifyOption)
- | ChannelTopicEditor TeamId
- | ChannelTopicSaveButton TeamId
- | ChannelTopicCancelButton TeamId
- | ChannelTopicEditorPreview TeamId
- | ThreadMessageInput ChannelId
- | ThreadEditorAttachmentList ChannelId
- | ChannelTopic ChannelId
- | TeamList
- | ClickableChannelSelectEntry ChannelSelectMatch
- | ClickableChannelListEntry ChannelId
- | ClickableTeamListEntry TeamId
- | ClickableURL (Maybe MessageId) Name Int LinkTarget
- | ClickableReaction PostId Name Text (Set UserId)
- | ClickableAttachmentInMessage Name FileId
- | ClickableUsername (Maybe MessageId) Name Int Text
- | ClickableURLListEntry Int LinkTarget
- | ClickableChannelListGroupHeading ChannelListGroupLabel
- | ClickableReactionEmojiListWindowEntry (Bool, Text)
- | AttachmentPathEditor Name
- | AttachmentPathSaveButton Name
- | AttachmentPathCancelButton Name
- | RenderedMessage MessageId
- | SelectedChannelListEntry TeamId
- | VScrollBar ClickableScrollbarElement Name
- data ChannelListEntry = ChannelListEntry {}
- data ChannelListEntryType
- data ChannelSelectMatch = ChannelSelectMatch {}
- data LinkTarget
- data KeyEvent
- = VtyRefreshEvent
- | ShowHelpEvent
- | EnterSelectModeEvent
- | ReplyRecentEvent
- | ToggleMessagePreviewEvent
- | InvokeEditorEvent
- | EnterFastSelectModeEvent
- | QuitEvent
- | NextChannelEvent
- | PrevChannelEvent
- | NextChannelEventAlternate
- | PrevChannelEventAlternate
- | NextUnreadChannelEvent
- | NextUnreadUserOrChannelEvent
- | LastChannelEvent
- | EnterOpenURLModeEvent
- | ClearUnreadEvent
- | ToggleMultiLineEvent
- | EnterFlaggedPostsEvent
- | ToggleChannelListVisibleEvent
- | ToggleExpandedChannelTopicsEvent
- | ShowAttachmentListEvent
- | ChangeMessageEditorFocus
- | EditorKillToBolEvent
- | EditorKillToEolEvent
- | EditorBolEvent
- | EditorEolEvent
- | EditorTransposeCharsEvent
- | EditorDeleteCharacter
- | EditorPrevCharEvent
- | EditorNextCharEvent
- | EditorPrevWordEvent
- | EditorNextWordEvent
- | EditorDeleteNextWordEvent
- | EditorDeletePrevWordEvent
- | EditorHomeEvent
- | EditorEndEvent
- | EditorYankEvent
- | CycleChannelListSorting
- | SelectNextTabEvent
- | SelectPreviousTabEvent
- | SaveAttachmentEvent
- | CancelEvent
- | LoadMoreEvent
- | OpenMessageURLEvent
- | ScrollUpEvent
- | ScrollDownEvent
- | ScrollLeftEvent
- | ScrollRightEvent
- | PageUpEvent
- | PageDownEvent
- | PageRightEvent
- | PageLeftEvent
- | ScrollTopEvent
- | ScrollBottomEvent
- | SelectOldestMessageEvent
- | ChannelListScrollUpEvent
- | ChannelListScrollDownEvent
- | SelectUpEvent
- | SelectDownEvent
- | SearchSelectUpEvent
- | SearchSelectDownEvent
- | ActivateListItemEvent
- | ViewMessageEvent
- | FillGapEvent
- | CopyPostLinkEvent
- | FlagMessageEvent
- | OpenThreadEvent
- | PinMessageEvent
- | YankMessageEvent
- | YankWholeMessageEvent
- | DeleteMessageEvent
- | EditMessageEvent
- | ReplyMessageEvent
- | ReactToMessageEvent
- | OpenMessageInExternalEditorEvent
- | AttachmentListAddEvent
- | AttachmentListDeleteEvent
- | AttachmentOpenEvent
- | FileBrowserBeginSearchEvent
- | FileBrowserSelectEnterEvent
- | FileBrowserSelectCurrentEvent
- | FileBrowserListPageUpEvent
- | FileBrowserListPageDownEvent
- | FileBrowserListHalfPageUpEvent
- | FileBrowserListHalfPageDownEvent
- | FileBrowserListTopEvent
- | FileBrowserListBottomEvent
- | FileBrowserListNextEvent
- | FileBrowserListPrevEvent
- | FormSubmitEvent
- | NextTeamEvent
- | PrevTeamEvent
- | MoveCurrentTeamLeftEvent
- | MoveCurrentTeamRightEvent
- allEvents :: KeyEvents KeyEvent
- data MessageId
- messageIdPostId :: MessageId -> Maybe PostId
- data ChannelListGroupLabel
- channelListGroupNames :: [(Text, ChannelListGroupLabel)]
- data MessageSelectState = MessageSelectState {}
- data HelpScreen
Documentation
This Name
type is the type used in brick
to identify various
parts of the interface.
MessageInterfaceMessages Name | The rendering of messages for the specified message interface (by editor name) |
MessageInput ChannelId | The message editor for the specified channel's main message interface |
MessageInputPrompt Name | A wrapper name for reporting the extent of a message editor's prompt. The specified name is the name of the editor whose prompt extent is being reported. |
ChannelListViewport TeamId | The name of the channel list viewport for the specified team. |
HelpViewport | The name of the viewport for the help interface. |
PostList | The tag for messages rendered in the post list window. |
HelpContent HelpScreen | The cache key constructor for caching help screen content. |
CompletionList Name | The name of the list of completion alternatives in the specified editor's autocomplete pop-up. |
JoinChannelList TeamId | The name of the channel list in the "/join" window. |
UrlList Name | The name of a URL listing for the specified message interface's editor name. |
MessagePreviewViewport Name | The name of the message interface editor's preview area. |
ThemeListSearchInput TeamId | The list of themes in the "/theme" window for the specified team. |
UserListSearchInput TeamId | The editor name for the user search input in the specified team's user list window. |
JoinChannelListSearchInput TeamId | The editor name for the search input in the specified team's "/join" window. |
UserListSearchResults TeamId | The list name for the specified team's user list window search results. |
ThemeListSearchResults TeamId | The list name for the specified team's theme list window search results. |
ViewMessageArea TeamId | The viewport for the specified team's single-message view window. |
ViewMessageReactionsArea TeamId | The viewport for the specified team's single-message view window's reaction tab. |
ChannelSidebar TeamId | The cache key for the specified team's channel list viewport contents. |
ChannelSelectInput TeamId | The editor name for the specified team's channel selection mode editor. |
AttachmentList ChannelId | The name of the attachment list for the specified channel's message interface. |
AttachmentFileBrowser ChannelId | |
ReactionEmojiList TeamId | The name of the list of emoji to choose from for reactions for the specified team. |
ReactionEmojiListInput TeamId | The name of the search editor for the specified team's emoji search window. |
TabbedWindowTabBar TeamId | The name of the specified team's tabbed window tab bar viewport. |
MuteToggleField TeamId | The name of the channel preferences mute form field. |
ChannelMentionsField TeamId | The name of the channel preferences mentions form field. |
DesktopNotificationsField TeamId (WithDefault NotifyOption) | The name of the channel preferences desktop notifications form field. |
PushNotificationsField TeamId (WithDefault NotifyOption) | The name of the channel preferences push notifications form field. |
ChannelTopicEditor TeamId | The specified team's channel topic window editor. |
ChannelTopicSaveButton TeamId | The specified team's channel topic window save button. |
ChannelTopicCancelButton TeamId | The specified team's channel topic window canel button. |
ChannelTopicEditorPreview TeamId | The specified team's channel topic window preview area viewport. |
ThreadMessageInput ChannelId | The message editor for the specified channel's thread view. |
ThreadEditorAttachmentList ChannelId | The list name for the specified channel's thread message interface's attachment list. |
ChannelTopic ChannelId | The mouse click area tag for a rendered channel topic. |
TeamList | The viewport name for the team list. |
ClickableChannelSelectEntry ChannelSelectMatch | The name of a clickable channel select entry in the channel select match list. |
ClickableChannelListEntry ChannelId | The name of a clickable entry in the channel list. |
ClickableTeamListEntry TeamId | The name of a clickable entry in the team list. |
ClickableURL (Maybe MessageId) Name Int LinkTarget | The name of a clickable URL rendered in RichText. If provided, the message ID is the ID of the message in which the URL appears. The integer is the URL index in the rich text block for unique identification. |
ClickableReaction PostId Name Text (Set UserId) | The name of a clickable reaction rendered in RichText when it is part of a message. |
ClickableAttachmentInMessage Name FileId | The name of a clickable attachment. |
ClickableUsername (Maybe MessageId) Name Int Text | The name of a clickable username rendered in RichText. The message ID and integer sequence number uniquely identify the clickable region. |
ClickableURLListEntry Int LinkTarget | The name of a clickable URL list entry. The integer is the list index. |
ClickableChannelListGroupHeading ChannelListGroupLabel | The name of a clickable channel list group heading. |
ClickableReactionEmojiListWindowEntry (Bool, Text) | The name of a clickable reaction emoji list entry. |
AttachmentPathEditor Name | The name of the specified message interface's attachment browser path editor. |
AttachmentPathSaveButton Name | The name of the specified message interface's attachment browser save button. |
AttachmentPathCancelButton Name | The name of the specified message interface's attachment browser cancel button. |
RenderedMessage MessageId | The cache key for the rendering of the specified message. |
SelectedChannelListEntry TeamId | The name of the specified team's currently selected channel list entry, used to bring the entry into view in its viewport. |
VScrollBar ClickableScrollbarElement Name | The name of the scroll bar elements for the specified viewport name. |
data ChannelListEntry Source #
The type of channel list entries.
Instances
Show ChannelListEntry Source # | |
Defined in Matterhorn.Types.Core showsPrec :: Int -> ChannelListEntry -> ShowS # show :: ChannelListEntry -> String # showList :: [ChannelListEntry] -> ShowS # | |
Eq ChannelListEntry Source # | |
Defined in Matterhorn.Types.Core (==) :: ChannelListEntry -> ChannelListEntry -> Bool # (/=) :: ChannelListEntry -> ChannelListEntry -> Bool # | |
Ord ChannelListEntry Source # | |
Defined in Matterhorn.Types.Core compare :: ChannelListEntry -> ChannelListEntry -> Ordering # (<) :: ChannelListEntry -> ChannelListEntry -> Bool # (<=) :: ChannelListEntry -> ChannelListEntry -> Bool # (>) :: ChannelListEntry -> ChannelListEntry -> Bool # (>=) :: ChannelListEntry -> ChannelListEntry -> Bool # max :: ChannelListEntry -> ChannelListEntry -> ChannelListEntry # min :: ChannelListEntry -> ChannelListEntry -> ChannelListEntry # |
data ChannelListEntryType Source #
Instances
Show ChannelListEntryType Source # | |
Defined in Matterhorn.Types.Core showsPrec :: Int -> ChannelListEntryType -> ShowS # show :: ChannelListEntryType -> String # showList :: [ChannelListEntryType] -> ShowS # | |
Eq ChannelListEntryType Source # | |
Defined in Matterhorn.Types.Core (==) :: ChannelListEntryType -> ChannelListEntryType -> Bool # (/=) :: ChannelListEntryType -> ChannelListEntryType -> Bool # | |
Ord ChannelListEntryType Source # | |
Defined in Matterhorn.Types.Core compare :: ChannelListEntryType -> ChannelListEntryType -> Ordering # (<) :: ChannelListEntryType -> ChannelListEntryType -> Bool # (<=) :: ChannelListEntryType -> ChannelListEntryType -> Bool # (>) :: ChannelListEntryType -> ChannelListEntryType -> Bool # (>=) :: ChannelListEntryType -> ChannelListEntryType -> Bool # max :: ChannelListEntryType -> ChannelListEntryType -> ChannelListEntryType # min :: ChannelListEntryType -> ChannelListEntryType -> ChannelListEntryType # |
data ChannelSelectMatch Source #
A match in channel selection mode.
ChannelSelectMatch | |
|
Instances
Show ChannelSelectMatch Source # | |
Defined in Matterhorn.Types.Core showsPrec :: Int -> ChannelSelectMatch -> ShowS # show :: ChannelSelectMatch -> String # showList :: [ChannelSelectMatch] -> ShowS # | |
Eq ChannelSelectMatch Source # | |
Defined in Matterhorn.Types.Core (==) :: ChannelSelectMatch -> ChannelSelectMatch -> Bool # (/=) :: ChannelSelectMatch -> ChannelSelectMatch -> Bool # | |
Ord ChannelSelectMatch Source # | |
Defined in Matterhorn.Types.Core compare :: ChannelSelectMatch -> ChannelSelectMatch -> Ordering # (<) :: ChannelSelectMatch -> ChannelSelectMatch -> Bool # (<=) :: ChannelSelectMatch -> ChannelSelectMatch -> Bool # (>) :: ChannelSelectMatch -> ChannelSelectMatch -> Bool # (>=) :: ChannelSelectMatch -> ChannelSelectMatch -> Bool # max :: ChannelSelectMatch -> ChannelSelectMatch -> ChannelSelectMatch # min :: ChannelSelectMatch -> ChannelSelectMatch -> ChannelSelectMatch # |
data LinkTarget Source #
Instances
Show LinkTarget Source # | |
Defined in Matterhorn.Types.Core showsPrec :: Int -> LinkTarget -> ShowS # show :: LinkTarget -> String # showList :: [LinkTarget] -> ShowS # | |
Eq LinkTarget Source # | |
Defined in Matterhorn.Types.Core (==) :: LinkTarget -> LinkTarget -> Bool # (/=) :: LinkTarget -> LinkTarget -> Bool # | |
Ord LinkTarget Source # | |
Defined in Matterhorn.Types.Core compare :: LinkTarget -> LinkTarget -> Ordering # (<) :: LinkTarget -> LinkTarget -> Bool # (<=) :: LinkTarget -> LinkTarget -> Bool # (>) :: LinkTarget -> LinkTarget -> Bool # (>=) :: LinkTarget -> LinkTarget -> Bool # max :: LinkTarget -> LinkTarget -> LinkTarget # min :: LinkTarget -> LinkTarget -> LinkTarget # |
This enum represents all the possible key events a user might want to use.
Instances
Enum KeyEvent Source # | |
Show KeyEvent Source # | |
Eq KeyEvent Source # | |
Ord KeyEvent Source # | |
Defined in Matterhorn.Types.Core |
Instances
Generic MessageId Source # | |
Read MessageId Source # | |
Show MessageId Source # | |
Eq MessageId Source # | |
Ord MessageId Source # | |
Defined in Matterhorn.Types.Core | |
Hashable MessageId Source # | |
Defined in Matterhorn.Types.Core | |
type Rep MessageId Source # | |
Defined in Matterhorn.Types.Core type Rep MessageId = D1 ('MetaData "MessageId" "Matterhorn.Types.Core" "matterhorn-50200.19.0-9vQdPBSoNorGBz74jKamW0" 'False) (C1 ('MetaCons "MessagePostId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PostId)) :+: C1 ('MetaCons "MessageUUID" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UUID))) |
data ChannelListGroupLabel Source #
ChannelGroupPublicChannels | |
ChannelGroupPrivateChannels | |
ChannelGroupFavoriteChannels | |
ChannelGroupDirectMessages |
Instances
Show ChannelListGroupLabel Source # | |
Defined in Matterhorn.Types.Core showsPrec :: Int -> ChannelListGroupLabel -> ShowS # show :: ChannelListGroupLabel -> String # showList :: [ChannelListGroupLabel] -> ShowS # | |
Eq ChannelListGroupLabel Source # | |
Defined in Matterhorn.Types.Core (==) :: ChannelListGroupLabel -> ChannelListGroupLabel -> Bool # (/=) :: ChannelListGroupLabel -> ChannelListGroupLabel -> Bool # | |
Ord ChannelListGroupLabel Source # | |
Defined in Matterhorn.Types.Core compare :: ChannelListGroupLabel -> ChannelListGroupLabel -> Ordering # (<) :: ChannelListGroupLabel -> ChannelListGroupLabel -> Bool # (<=) :: ChannelListGroupLabel -> ChannelListGroupLabel -> Bool # (>) :: ChannelListGroupLabel -> ChannelListGroupLabel -> Bool # (>=) :: ChannelListGroupLabel -> ChannelListGroupLabel -> Bool # max :: ChannelListGroupLabel -> ChannelListGroupLabel -> ChannelListGroupLabel # min :: ChannelListGroupLabel -> ChannelListGroupLabel -> ChannelListGroupLabel # |
data MessageSelectState Source #
The state of message selection mode.
data HelpScreen Source #
The HelpScreen
type represents the set of possible Help
screens
we have to choose from.
Instances
Show HelpScreen Source # | |
Defined in Matterhorn.Types.Core showsPrec :: Int -> HelpScreen -> ShowS # show :: HelpScreen -> String # showList :: [HelpScreen] -> ShowS # | |
Eq HelpScreen Source # | |
Defined in Matterhorn.Types.Core (==) :: HelpScreen -> HelpScreen -> Bool # (/=) :: HelpScreen -> HelpScreen -> Bool # | |
Ord HelpScreen Source # | |
Defined in Matterhorn.Types.Core compare :: HelpScreen -> HelpScreen -> Ordering # (<) :: HelpScreen -> HelpScreen -> Bool # (<=) :: HelpScreen -> HelpScreen -> Bool # (>) :: HelpScreen -> HelpScreen -> Bool # (>=) :: HelpScreen -> HelpScreen -> Bool # max :: HelpScreen -> HelpScreen -> HelpScreen # min :: HelpScreen -> HelpScreen -> HelpScreen # |