Data.Rope.UTF16.Internal.Position
data RowColumn Source #
Constructors
Fields
Number of newlines before this position
Number of code units since last newline or start of string
Defined in Data.Rope.UTF16.Internal.Position
Methods
(==) :: RowColumn -> RowColumn -> Bool #
(/=) :: RowColumn -> RowColumn -> Bool #
compare :: RowColumn -> RowColumn -> Ordering #
(<) :: RowColumn -> RowColumn -> Bool #
(<=) :: RowColumn -> RowColumn -> Bool #
(>) :: RowColumn -> RowColumn -> Bool #
(>=) :: RowColumn -> RowColumn -> Bool #
max :: RowColumn -> RowColumn -> RowColumn #
min :: RowColumn -> RowColumn -> RowColumn #
showsPrec :: Int -> RowColumn -> ShowS #
show :: RowColumn -> String #
showList :: [RowColumn] -> ShowS #
(<>) :: RowColumn -> RowColumn -> RowColumn #
sconcat :: NonEmpty RowColumn -> RowColumn #
stimes :: Integral b => b -> RowColumn -> RowColumn #
mempty :: RowColumn #
mappend :: RowColumn -> RowColumn -> RowColumn #
mconcat :: [RowColumn] -> RowColumn #
data Position Source #
(==) :: Position -> Position -> Bool #
(/=) :: Position -> Position -> Bool #
compare :: Position -> Position -> Ordering #
(<) :: Position -> Position -> Bool #
(<=) :: Position -> Position -> Bool #
(>) :: Position -> Position -> Bool #
(>=) :: Position -> Position -> Bool #
max :: Position -> Position -> Position #
min :: Position -> Position -> Position #
showsPrec :: Int -> Position -> ShowS #
show :: Position -> String #
showList :: [Position] -> ShowS #
(<>) :: Position -> Position -> Position #
sconcat :: NonEmpty Position -> Position #
stimes :: Integral b => b -> Position -> Position #
mempty :: Position #
mappend :: Position -> Position -> Position #
mconcat :: [Position] -> Position #
Defined in Data.Rope.UTF16.Internal
measure :: Rope -> Position Source #
measure :: Chunk -> Position Source #