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

Modulebase-4.20.2.0Haskell2010

GHC.ArrayArray

Legacy interface for arrays of arrays. Deprecated, because the Array# type can now store arrays directly. Consider simply using Array# instead of ArrayArray#.

Use GHC.Exts instead of importing this module directly.

  • 2 types
  • 18 values
  • Packagebase-4.20.2.0
  • Exports20
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceArrayArray.hs
valuenewArrayArray# :: Int# -> State# s -> (# State# s, MutableArrayArray# s #)
#

Create a new mutable array of arrays with the specified number of elements, in the specified state thread, with each element recursively referring to the newly created array.

Copy a range of the first MutableArrayArray# to the specified region in the second MutableArrayArray#. Both arrays must fully contain the specified ranges, but this is not checked. The regions are allowed to overlap, although this is only possible when the same array is provided as both the source and the destination.