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

Safe HaskellNone

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 

Instances

Bounded Direction 
Enum Direction 
Eq Direction 
Ord Direction 
Show Direction 
Typeable Direction 
Binary Direction 

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
 

Instances

Eq Mark 
Ord Mark 
Show Mark 
Typeable Mark 
Binary Mark 

newtype BufferRef Source

Reference to a buffer.

Constructors

BufferRef Int 

Instances

Eq BufferRef 
Num BufferRef 
Ord BufferRef 
Show BufferRef 
Typeable BufferRef 
Binary BufferRef 

newtype Point Source

A point in a buffer

Constructors

Point 

Fields

fromPoint :: Int
 

Instances

Bounded Point 
Enum Point 
Eq Point 
Integral Point 
Num Point 
Ord Point 
Real Point 
Show Point 
Ix Point 
Typeable Point 
Binary Point 
SemiNum Point Size 

newtype Size Source

Size of a buffer region

Constructors

Size 

Fields

fromSize :: Int
 

Instances

Enum Size 
Eq Size 
Integral Size 
Num Size 
Ord Size 
Real Size 
Show Size 
Binary Size 
SemiNum Point Size 

newtype WindowRef Source

Window references

Constructors

WindowRef 

Fields

unWindowRef :: Int
 

Instances

Enum WindowRef 
Eq WindowRef 
Ord WindowRef 
Show WindowRef 
Typeable WindowRef 
Default WindowRef 
Binary WindowRef