yi-language-0.1.0.3: Collection of language-related Yi libraries.

Safe HaskellNone
LanguageHaskell2010

Yi.Buffer.Basic

Description

Basic types useful everywhere we play with buffers.

Synopsis

Documentation

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