yi-0.6.2.3: The Haskell-Scriptable EditorSource codeContentsIndex
Yi.Buffer.Basic
Description
Basic types useful everywhere we play with buffers.
Synopsis
data Direction
= Backward
| Forward
reverseDir :: Direction -> Direction
mayReverse :: Direction -> [a] -> [a]
directionElim :: Direction -> a -> a -> a
newtype Mark = Mark {
markId :: Int
}
newtype BufferRef = BufferRef Int
newtype Point = Point {
fromPoint :: Int
}
newtype Size = Size {
fromSize :: Int
}
fromString :: String -> Rope
Documentation
data Direction Source
Direction of movement inside a buffer
Constructors
Backward
Forward
show/hide Instances
reverseDir :: Direction -> DirectionSource
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
markId :: Int
show/hide Instances
newtype BufferRef Source
Reference to a buffer.
Constructors
BufferRef Int
show/hide Instances
newtype Point Source
A point in a buffer
Constructors
Point
fromPoint :: Int
show/hide Instances
newtype Size Source
Size of a buffer region
Constructors
Size
fromSize :: Int
show/hide Instances
fromString :: String -> RopeSource
Produced by Haddock version 2.6.1