yi-0.8.1: The Haskell-Scriptable Editor

Safe HaskellNone
LanguageHaskell2010

Yi.Buffer.Basic

Description

Basic types useful everywhere we play with buffers.

Synopsis

Documentation

data Direction Source

Direction of movement inside a buffer

Constructors

Backward 
Forward 

mayReverse :: Direction -> [a] -> [a] Source

reverse if Backward

directionElim :: Direction -> a -> a -> a Source

direction is in the same style of maybe or either functions, It takes one argument per direction (backward, then forward) and a direction to select the output.

newtype Mark Source

A mark in a buffer

Constructors

Mark 

Fields

markId :: Int
 

newtype BufferRef Source

Reference to a buffer.

Constructors

BufferRef Int 

newtype Size Source

Size of a buffer region

Constructors

Size 

Fields

fromSize :: Int