rasa-ext-cursors-0.1.3: Rasa Ext adding cursor(s)

Safe HaskellNone
LanguageHaskell2010

Rasa.Ext.Cursors.Internal.Base

Synopsis

Documentation

rangeDo :: (Range -> BufAction a) -> BufAction [a] Source #

Sequences actions over each range as a BufAction

rangeDo_ :: (Range -> BufAction a) -> BufAction () Source #

rangeDo with void return.

ranges :: HasBuffer s => Lens' s [Range] Source #

A lens over all the stored cursor ranges for a buffer

eachRange :: HasBuffer s => Traversal' s Range Source #

A Traversal over each Range for the given buffer.

overRanges :: (Range -> BufAction Range) -> BufAction () Source #

Sequences actions over each range and replaces each range with its result.

addRange :: Range -> BufAction () Source #

Adds a new range to the list of ranges.

displayRange :: BufAction () Source #

Sets style attributes to show a given range.