yi-language-0.19.1: Collection of language-related Yi libraries.
Safe HaskellSafe-Inferred
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 

Instances

Instances details
Bounded Direction Source # 
Instance details

Defined in Yi.Buffer.Basic

Enum Direction Source # 
Instance details

Defined in Yi.Buffer.Basic

Generic Direction Source # 
Instance details

Defined in Yi.Buffer.Basic

Associated Types

type Rep Direction :: Type -> Type #

Show Direction Source # 
Instance details

Defined in Yi.Buffer.Basic

Binary Direction Source # 
Instance details

Defined in Yi.Buffer.Basic

Eq Direction Source # 
Instance details

Defined in Yi.Buffer.Basic

Ord Direction Source # 
Instance details

Defined in Yi.Buffer.Basic

type Rep Direction Source # 
Instance details

Defined in Yi.Buffer.Basic

type Rep Direction = D1 ('MetaData "Direction" "Yi.Buffer.Basic" "yi-language-0.19.1-48kBHo5CiHwKn5eCndJTLb" 'False) (C1 ('MetaCons "Backward" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Forward" 'PrefixI 'False) (U1 :: Type -> Type))

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

Instances

Instances details
Show Mark Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

showsPrec :: Int -> Mark -> ShowS #

show :: Mark -> String #

showList :: [Mark] -> ShowS #

Binary Mark Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

put :: Mark -> Put #

get :: Get Mark #

putList :: [Mark] -> Put #

Eq Mark Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

(==) :: Mark -> Mark -> Bool #

(/=) :: Mark -> Mark -> Bool #

Ord Mark Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

compare :: Mark -> Mark -> Ordering #

(<) :: Mark -> Mark -> Bool #

(<=) :: Mark -> Mark -> Bool #

(>) :: Mark -> Mark -> Bool #

(>=) :: Mark -> Mark -> Bool #

max :: Mark -> Mark -> Mark #

min :: Mark -> Mark -> Mark #

newtype BufferRef Source #

Reference to a buffer.

Constructors

BufferRef Int 

newtype Point Source #

A point in a buffer

Constructors

Point 

Fields

Instances

Instances details
Bounded Point Source # 
Instance details

Defined in Yi.Buffer.Basic

Enum Point Source # 
Instance details

Defined in Yi.Buffer.Basic

Ix Point Source # 
Instance details

Defined in Yi.Buffer.Basic

Num Point Source # 
Instance details

Defined in Yi.Buffer.Basic

Integral Point Source # 
Instance details

Defined in Yi.Buffer.Basic

Real Point Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

toRational :: Point -> Rational #

Show Point Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

showsPrec :: Int -> Point -> ShowS #

show :: Point -> String #

showList :: [Point] -> ShowS #

Binary Point Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

put :: Point -> Put #

get :: Get Point #

putList :: [Point] -> Put #

Eq Point Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

(==) :: Point -> Point -> Bool #

(/=) :: Point -> Point -> Bool #

Ord Point Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

compare :: Point -> Point -> Ordering #

(<) :: Point -> Point -> Bool #

(<=) :: Point -> Point -> Bool #

(>) :: Point -> Point -> Bool #

(>=) :: Point -> Point -> Bool #

max :: Point -> Point -> Point #

min :: Point -> Point -> Point #

SemiNum Point Size Source # 
Instance details

Defined in Yi.Buffer.Basic

newtype Size Source #

Size of a buffer region

Constructors

Size 

Fields

Instances

Instances details
Enum Size Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

succ :: Size -> Size #

pred :: Size -> Size #

toEnum :: Int -> Size #

fromEnum :: Size -> Int #

enumFrom :: Size -> [Size] #

enumFromThen :: Size -> Size -> [Size] #

enumFromTo :: Size -> Size -> [Size] #

enumFromThenTo :: Size -> Size -> Size -> [Size] #

Num Size Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

(+) :: Size -> Size -> Size #

(-) :: Size -> Size -> Size #

(*) :: Size -> Size -> Size #

negate :: Size -> Size #

abs :: Size -> Size #

signum :: Size -> Size #

fromInteger :: Integer -> Size #

Integral Size Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

quot :: Size -> Size -> Size #

rem :: Size -> Size -> Size #

div :: Size -> Size -> Size #

mod :: Size -> Size -> Size #

quotRem :: Size -> Size -> (Size, Size) #

divMod :: Size -> Size -> (Size, Size) #

toInteger :: Size -> Integer #

Real Size Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

toRational :: Size -> Rational #

Show Size Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

showsPrec :: Int -> Size -> ShowS #

show :: Size -> String #

showList :: [Size] -> ShowS #

Binary Size Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

put :: Size -> Put #

get :: Get Size #

putList :: [Size] -> Put #

Eq Size Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

(==) :: Size -> Size -> Bool #

(/=) :: Size -> Size -> Bool #

Ord Size Source # 
Instance details

Defined in Yi.Buffer.Basic

Methods

compare :: Size -> Size -> Ordering #

(<) :: Size -> Size -> Bool #

(<=) :: Size -> Size -> Bool #

(>) :: Size -> Size -> Bool #

(>=) :: Size -> Size -> Bool #

max :: Size -> Size -> Size #

min :: Size -> Size -> Size #

SemiNum Point Size Source # 
Instance details

Defined in Yi.Buffer.Basic

newtype WindowRef Source #

Window references

Constructors

WindowRef 

Fields