Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype BufAction a = BufAction {
- getBufAction :: Free (BufActionF BufActionState) a
- getText :: BufAction YiString
- setText :: YiString -> BufAction ()
- getRange :: CrdRange -> BufAction YiString
- setRange :: CrdRange -> YiString -> BufAction ()
- liftState :: (BufActionState -> (a, BufActionState)) -> BufAction a
- liftAction :: Action r -> BufAction r
- runBufAction :: BufAction a -> BufRef -> Action (Maybe a)
Documentation
This is a monad for performing actions on a specific buffer.
You run BufAction
s by embedding them in a Action
via bufferDo
or
buffersDo
Within a BufAction you can:
- Use
liftAction
to run anAction
- Use liftIO for IO
- Access/Edit the buffer's text; some commands are available in Rasa.Internal.Actions.
- Access/edit buffer extensions; see
bufExt
- Embed and sequence
BufAction
s from other extensions
BufAction | |
|