yi-0.6.2.4: The Haskell-Scriptable Editor

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 -> aSource

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 Point Source

A point in a buffer

Constructors

Point 

Fields

fromPoint :: Int
 

newtype Size Source

Size of a buffer region

Constructors

Size 

Fields

fromSize :: Int