rasa-0.1.9: 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 #

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

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

mkBuffer :: YiString -> Buffer Source #

Creates a new buffer from the given text.