HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Moduletext-2.1.4Haskell2010

Data.Text.Array

Packed, unboxed, heap-resident arrays. Suitable for performance critical use, both in terms of large data quantities and high speed.

This module is intended to be imported qualified, to avoid name clashes with Prelude functions, e.g.

import qualified Data.Text.Array as A

The names in this module resemble those in the Data.Array family of modules, but are shorter due to the assumption of qualified naming.

Contents
  1. Types
  2. Functions
Synopsis
  • Packagetext-2.1.4
  • Exports24
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceArray.hs

Types

Functions

valueequal
  1. :: Array

    First array

  2. -> Int

    Offset in the first array

  3. -> Array

    Second array

  4. -> Int

    Offset in the second array

  5. -> Int

    How many bytes to compare?

  6. -> Bool

Compare portions of two arrays for equality. No bounds checking is performed.

valuecompare
  1. :: Array

    First array

  2. -> Int

    Offset in the first array

  3. -> Array

    Second array

  4. -> Int

    Offset in the second array

  5. -> Int

    How many bytes to compare?

  6. -> Ordering

Compare portions of two arrays. No bounds checking is performed.

valuerun :: (forall s. ST s (MArray s)) -> Array

Run an action in the ST monad and return an immutable array of its result.

valuerun2 :: (forall s. ST s (MArray s, a)) -> (Array, a)

Run an action in the ST monad and return an immutable array of its result paired with whatever else the action returns.