rasa-0.1.4: A modular text editor

Safe HaskellNone
LanguageHaskell2010

Rasa.Internal.Buffer

Synopsis

Documentation

data Buffer Source #

A buffer, holds the text in the buffer and any extension states that are set on the buffer. A buffer is the State of the BufAction monad transformer stack, so the type may be useful in defining lenses over your extension states.

data Ext Source #

A wrapper around an extension of any type so it can be stored in an ExtMap

Constructors

Show a => Ext a 

Instances

Show Ext Source # 

Methods

showsPrec :: Int -> Ext -> ShowS #

show :: Ext -> String #

showList :: [Ext] -> ShowS #

A lens over the extensions stored for a buffer

A lens into the text of the given buffer. Use within a BufAction.

mkBuffer :: YiString -> Buffer Source #

Creates a new buffer from the givven text.