Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- requestSpellCheck :: Aspell -> MessageInterfaceTarget -> MH ()
- editingKeybindings :: Lens' ChatState (Editor Text Name) -> KeyConfig KeyEvent -> KeyDispatcher KeyEvent MH
- editingKeyHandlers :: Lens' ChatState (Editor Text Name) -> [MHKeyEventHandler]
- toggleMultilineEditing :: Lens' ChatState (EditState Name) -> MH ()
- invokeExternalEditor :: Lens' ChatState (EditState Name) -> MH ()
- handlePaste :: Lens' ChatState (EditState Name) -> ByteString -> MH ()
- handleInputSubmission :: Lens' ChatState (EditState Name) -> Text -> MH ()
- getEditorContent :: Lens' ChatState (EditState Name) -> MH Text
- handleEditingInput :: Lens' ChatState (EditState Name) -> Event -> MH ()
- cancelAutocompleteOrReplyOrEdit :: Lens' ChatState (EditState Name) -> MH ()
- replyToLatestMessage :: Lens' ChatState (MessageInterface n i) -> MH ()
- data Direction
- tabComplete :: Traversal' ChatState (EditState Name) -> Direction -> MH ()
Documentation
requestSpellCheck :: Aspell -> MessageInterfaceTarget -> MH () Source #
editingKeybindings :: Lens' ChatState (Editor Text Name) -> KeyConfig KeyEvent -> KeyDispatcher KeyEvent MH Source #
editingKeyHandlers :: Lens' ChatState (Editor Text Name) -> [MHKeyEventHandler] Source #
handlePaste :: Lens' ChatState (EditState Name) -> ByteString -> MH () Source #
handleInputSubmission :: Lens' ChatState (EditState Name) -> Text -> MH () Source #
Handle an input submission in the message editor.
This handles the specified input text as if it were user input for the specified channel. This means that if the specified input text contains a command ("/...") then it is executed as normal. Otherwise the text is sent as a message to the specified channel.
However, this function assumes that the message editor is the *source* of the text, so it also takes care of clearing the editor, resetting the edit mode, updating the input history for the specified channel, etc.
replyToLatestMessage :: Lens' ChatState (MessageInterface n i) -> MH () Source #
tabComplete :: Traversal' ChatState (EditState Name) -> Direction -> MH () Source #