| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Rasa.Internal.BufAction
- 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 BufActions by embedding them in a Action via bufferDo or
 buffersDo
Within a BufAction you can:
- Use 
liftActionto 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 
BufActions from other extensions 
Constructors
| BufAction | |
Fields 
  | |