HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulefoundation-0.0.30Haskell2010

Foundation.Array

Simple Array and Almost-Array-like data structure

Generally accessible in o(1)

  • 8 types
  • 1 class
datadata Array a
#

Array of a

Instances30Functor, Mappable, IsList, Eq, Data, Ord, …
datadata MArray a st
#

Mutable Array of a

Instances5MutableCollection, RandomAccess, MutableFreezed, MutableKey, MutableValue
datadata UArray ty
#

An array of type built on top of GHC primitive.

The elements need to have fixed sized and the representation is a packed contiguous array in memory that can easily be passed to foreign interface

Instances31IsList, Eq, Data, Ord, Show, Semigroup, …
datadata MUArray ty st
#

A Mutable array of types built on top of GHC primitive.

Element in this array can be modified in place.

Instances4MutableCollection, MutableFreezed, MutableKey, MutableValue
newtypenewtype ChunkedUArray ty
#
Instances13IsList, Eq, Ord, Show, Semigroup, Monoid, …
datadata Bitmap
#
Instances13IsList, Eq, Ord, Show, Semigroup, Monoid, …
  • IsList BitmapDefined in foundation-0.0.30 · Foundation.Array.Bitmap
  • Eq BitmapDefined in foundation-0.0.30 · Foundation.Array.Bitmap
  • Ord BitmapDefined in foundation-0.0.30 · Foundation.Array.Bitmap
  • Show BitmapDefined in foundation-0.0.30 · Foundation.Array.Bitmap
  • Semigroup BitmapDefined in foundation-0.0.30 · Foundation.Array.Bitmap
  • Monoid BitmapDefined in foundation-0.0.30 · Foundation.Array.Bitmap
  • Collection BitmapDefined in foundation-0.0.30 · Foundation.Array.Bitmap
  • Foldable BitmapDefined in foundation-0.0.30 · Foundation.Array.Bitmap
  • Sequential BitmapDefined in foundation-0.0.30 · Foundation.Array.Bitmap
  • IndexedCollection BitmapDefined in foundation-0.0.30 · Foundation.Array.Bitmap
  • InnerFunctor BitmapDefined in foundation-0.0.30 · Foundation.Array.Bitmap
  • type Item Bitmap = BoolDefined in foundation-0.0.30 · Foundation.Array.Bitmap
  • type Element Bitmap = BoolDefined in foundation-0.0.30 · Foundation.Array.Bitmap
classclass Eq ty => PrimType ty where
#

Represent the accessor for types that can be stored in the UArray and MUArray.

Types need to be a instance of storable and have fixed sized.

Instances22PrimType, …
datadata OutOfBound
#

Exception during an operation accessing the vector out of bound

Represent the type of operation, the index accessed, and the total length of the vector.

Instances2Show, Exception