HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulererebase-1.21.2Haskell2010

Data.Text.Array

  • 2 types
  • 20 values
valuerun :: (forall s. ST s (MArray s)) -> Array
#

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

valuecopyI
  1. :: Int

    Count

  2. -> MArray s

    Destination

  3. -> Int

    Destination offset

  4. -> Array

    Source

  5. -> Int

    Source offset

  6. -> ST s ()
#

Copy some elements of an immutable array.

valuecopyM
  1. :: MArray s

    Destination

  2. -> Int

    Destination offset

  3. -> MArray s

    Source

  4. -> Int

    Source offset

  5. -> Int

    Count

  6. -> ST s ()
#

Copy some elements of a mutable array.

valuenew :: Int -> ST s (MArray s)
#

Create an uninitialized mutable array.

valueunsafeIndex :: Array -> Int -> Word8
#

Unchecked read of an immutable array. May return garbage or crash on an out-of-bounds access.

valueunsafeWrite :: MArray s -> Int -> Word8 -> ST s ()
#

Unchecked write of a mutable array. May return garbage or crash on an out-of-bounds access.

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.