Safe Haskell | None |
---|
Basic types useful everywhere we play with buffers.
- data Direction
- 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
- newtype WindowRef = WindowRef {
- unWindowRef :: Int
Documentation
Direction of movement inside a buffer
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.
A mark in a buffer
Reference to a buffer.
BufferRef Int |
A point in a buffer
Size of a buffer region
fromString :: String -> RopeSource