rasa-0.1.12: 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.

class HasBuffer a where Source #

This allows creation of polymorphic lenses over any type which has access to a Buffer

Minimal complete definition

buffer

Methods

buffer :: Lens' a Buffer Source #

newtype BufRef Source #

An opaque reference to a buffer. When operating over a BufRef Rasa checks if the Buffer still exists and simply ignores any operations over non-existent buffers; typically returning Nothing

Constructors

BufRef Int 

text :: HasBuffer b => Lens' b YiString Source #

This lens focuses the text of the in-scope buffer.

mkBuffer :: YiString -> BufRef -> Buffer Source #

Creates a new buffer from the given text.

buffers :: HasStates s => Lens' s (IntMap Buffer) Source #

A lens over the map of available buffers