HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulerope-utf16-splay-0.4.0.0Haskell2010

Data.Rope.UTF16.Internal

Contents
  1. Queries
  2. Conversions
  3. Transformations
  4. Chunking
  5. UTF-16 code unit indexing
  6. Lines
  7. Breaking by predicate
  8. Folds
  9. Special folds
Synopsis
newtypenewtype Rope

A SplayTree of Text values optimised for being indexed by and modified at UTF-16 code units and row/column (RowColumn) positions. Internal invariant: No empty Chunks in the SplayTree

Instances7Eq, Ord, Show, IsString, Semigroup, Monoid, …
  • Eq RopeDefined in rope-utf16-splay-0.4.0.0 · Data.Rope.UTF16.Internal
  • Ord RopeDefined in rope-utf16-splay-0.4.0.0 · Data.Rope.UTF16.Internal
  • Show RopeDefined in rope-utf16-splay-0.4.0.0 · Data.Rope.UTF16.Internal
  • IsString RopeDefined in rope-utf16-splay-0.4.0.0 · Data.Rope.UTF16.Internal
  • Semigroup RopeDefined in rope-utf16-splay-0.4.0.0 · Data.Rope.UTF16.Internal

    Append joins adjacent chunks if that can be done while staying below chunkLength.

  • Monoid RopeDefined in rope-utf16-splay-0.4.0.0 · Data.Rope.UTF16.Internal
  • Measured Position RopeDefined in rope-utf16-splay-0.4.0.0 · Data.Rope.UTF16.Internal

Queries

valuecolumns :: Rope -> Int

The number of UTF-16 code units (not characters) since the last newline or the start of the rope

Conversions

Transformations

Chunking

UTF-16 code unit indexing

Lines

Breaking by predicate

Folds

Special folds