Data.Rope.UTF16.Internal.Position

rope-utf16-splay-0.4.0.0: Ropes optimised for updating using UTF-16 code units and row/column pairs.

Safe Haskell | Safe-Inferred
Language | Haskell2010

Data.Rope.UTF16.Internal.Position

# Documentation

data RowColumn #

Constructors

RowColumn |
Fields row :: !Int Number of newlines before this position column :: !Int Number of UTF-16 code units since last newline or start of string

#### Instances

Instances details

Monoid RowColumn # |
Instance details Defined in Data.Rope.UTF16.Internal.Position Methods mempty :: RowColumn # mappend :: RowColumn -> RowColumn -> RowColumn # mconcat :: [RowColumn] -> RowColumn #
Semigroup RowColumn # |
Instance details Defined in Data.Rope.UTF16.Internal.Position Methods (<>) :: RowColumn -> RowColumn -> RowColumn # sconcat :: NonEmpty RowColumn -> RowColumn # stimes :: Integral b => b -> RowColumn -> RowColumn #
Show RowColumn # |
Instance details Defined in Data.Rope.UTF16.Internal.Position Methods showsPrec :: Int -> RowColumn -> ShowS # show :: RowColumn -> String # showList :: [RowColumn] -> ShowS #
Eq RowColumn # |
Instance details Defined in Data.Rope.UTF16.Internal.Position Methods (==) :: RowColumn -> RowColumn -> Bool # (/=) :: RowColumn -> RowColumn -> Bool #
Ord RowColumn # |
Instance details Defined in Data.Rope.UTF16.Internal.Position Methods compare :: RowColumn -> RowColumn -> Ordering # (<) :: RowColumn -> RowColumn -> Bool # (<=) :: RowColumn -> RowColumn -> Bool # (>) :: RowColumn -> RowColumn -> Bool # (>=) :: RowColumn -> RowColumn -> Bool # max :: RowColumn -> RowColumn -> RowColumn # min :: RowColumn -> RowColumn -> RowColumn #

data Position #

Constructors

Position |
Fields codeUnits :: !Int UTF-16 code units rowColumn :: !RowColumn

#### Instances

Instances details

Monoid Position # |
Instance details Defined in Data.Rope.UTF16.Internal.Position Methods mempty :: Position # mappend :: Position -> Position -> Position # mconcat :: [Position] -> Position #
Semigroup Position # |
Instance details Defined in Data.Rope.UTF16.Internal.Position Methods (<>) :: Position -> Position -> Position # sconcat :: NonEmpty Position -> Position # stimes :: Integral b => b -> Position -> Position #
Show Position # |
Instance details Defined in Data.Rope.UTF16.Internal.Position Methods showsPrec :: Int -> Position -> ShowS # show :: Position -> String # showList :: [Position] -> ShowS #
Eq Position # |
Instance details Defined in Data.Rope.UTF16.Internal.Position Methods (==) :: Position -> Position -> Bool # (/=) :: Position -> Position -> Bool #
Ord Position # |
Instance details Defined in Data.Rope.UTF16.Internal.Position Methods compare :: Position -> Position -> Ordering # (<) :: Position -> Position -> Bool # (<=) :: Position -> Position -> Bool # (>) :: Position -> Position -> Bool # (>=) :: Position -> Position -> Bool # max :: Position -> Position -> Position # min :: Position -> Position -> Position #
Measured Position Chunk # |
Instance details Defined in Data.Rope.UTF16.Internal Methods measure :: Chunk -> Position #
Measured Position Rope # |
Instance details Defined in Data.Rope.UTF16.Internal Methods measure :: Rope -> Position #