Safe Haskell | None |
---|---|
Language | Haskell2010 |
Yi.Buffer.Basic
Description
Basic types useful everywhere we play with buffers.
Documentation
Direction of movement inside a buffer
Instances
Bounded Direction Source # | |
Enum Direction Source # | |
Defined in Yi.Buffer.Basic Methods succ :: Direction -> Direction Source # pred :: Direction -> Direction Source # toEnum :: Int -> Direction Source # fromEnum :: Direction -> Int Source # enumFrom :: Direction -> [Direction] Source # enumFromThen :: Direction -> Direction -> [Direction] Source # enumFromTo :: Direction -> Direction -> [Direction] Source # enumFromThenTo :: Direction -> Direction -> Direction -> [Direction] Source # | |
Eq Direction Source # | |
Ord Direction Source # | |
Defined in Yi.Buffer.Basic | |
Show Direction Source # | |
Generic Direction Source # | |
Binary Direction Source # | |
type Rep Direction Source # | |
reverseDir :: Direction -> Direction Source #
mayReverse :: Direction -> [a] -> [a] Source #
reverse if Backward
directionElim :: Direction -> a -> a -> a Source #
A mark in a buffer
Reference to a buffer.
Instances
Eq BufferRef Source # | |
Num BufferRef Source # | |
Defined in Yi.Buffer.Basic Methods (+) :: BufferRef -> BufferRef -> BufferRef Source # (-) :: BufferRef -> BufferRef -> BufferRef Source # (*) :: BufferRef -> BufferRef -> BufferRef Source # negate :: BufferRef -> BufferRef Source # abs :: BufferRef -> BufferRef Source # signum :: BufferRef -> BufferRef Source # fromInteger :: Integer -> BufferRef Source # | |
Ord BufferRef Source # | |
Defined in Yi.Buffer.Basic | |
Show BufferRef Source # | |
Binary BufferRef Source # | |
A point in a buffer
Instances
Bounded Point Source # | |
Enum Point Source # | |
Defined in Yi.Buffer.Basic Methods succ :: Point -> Point Source # pred :: Point -> Point Source # toEnum :: Int -> Point Source # fromEnum :: Point -> Int Source # enumFrom :: Point -> [Point] Source # enumFromThen :: Point -> Point -> [Point] Source # enumFromTo :: Point -> Point -> [Point] Source # enumFromThenTo :: Point -> Point -> Point -> [Point] Source # | |
Eq Point Source # | |
Integral Point Source # | |
Num Point Source # | |
Ord Point Source # | |
Defined in Yi.Buffer.Basic | |
Real Point Source # | |
Defined in Yi.Buffer.Basic Methods toRational :: Point -> Rational Source # | |
Show Point Source # | |
Ix Point Source # | |
Defined in Yi.Buffer.Basic | |
Binary Point Source # | |
SemiNum Point Size Source # | |
Size of a buffer region
Instances
Enum Size Source # | |
Eq Size Source # | |
Integral Size Source # | |
Defined in Yi.Buffer.Basic | |
Num Size Source # | |
Ord Size Source # | |
Real Size Source # | |
Defined in Yi.Buffer.Basic Methods toRational :: Size -> Rational Source # | |
Show Size Source # | |
Binary Size Source # | |
SemiNum Point Size Source # | |
Window references
Constructors
WindowRef | |
Fields
|
Instances
Enum WindowRef Source # | |
Defined in Yi.Buffer.Basic Methods succ :: WindowRef -> WindowRef Source # pred :: WindowRef -> WindowRef Source # toEnum :: Int -> WindowRef Source # fromEnum :: WindowRef -> Int Source # enumFrom :: WindowRef -> [WindowRef] Source # enumFromThen :: WindowRef -> WindowRef -> [WindowRef] Source # enumFromTo :: WindowRef -> WindowRef -> [WindowRef] Source # enumFromThenTo :: WindowRef -> WindowRef -> WindowRef -> [WindowRef] Source # | |
Eq WindowRef Source # | |
Ord WindowRef Source # | |
Defined in Yi.Buffer.Basic | |
Show WindowRef Source # | |
Binary WindowRef Source # | |
Default WindowRef Source # | |
Defined in Yi.Buffer.Basic |