rasa-0.1.9: A modular text editor

Safe HaskellNone
LanguageHaskell2010

Rasa.Internal.Editor

Contents

Synopsis

Accessing/Storing state

data Editor Source #

This is the primary state of the editor.

class HasEditor a where Source #

This allows polymorphic lenses over anything that has access to an Editor context

Minimal complete definition

editor

Methods

editor :: Lens' a Editor Source #

buffers :: HasEditor e => Lens' e (IntMap Buffer) Source #

A lens over the map of available buffers

exiting :: HasEditor e => Lens' e Bool Source #

A lens over the exiting status of the editor

nextBufId :: HasEditor e => Lens' e Int Source #

A lens over the next buffer id to be allocated

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