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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulearray-0.5.8.0Haskell2010

Data.Array.Storable.Safe

A storable array is an IO-mutable array which stores its contents in a contiguous memory block living in the C heap. Elements are stored according to the class Storable. You can obtain the pointer to the array contents to manipulate elements from languages like C.

It is similar to IOUArray but slower. Its advantage is that it's compatible with C.

Safe API only of Data.Array.Storable.

Contents
  1. Arrays of Storable things.
  2. Overloaded mutable array interface
  3. Accessing the pointer to the array contents
Synopsis
  • Packagearray-0.5.8.0
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceSafe.hs

Arrays of Storable things.

Overloaded mutable array interface

Module Data.Array.MArray provides the interface of storable arrays. They are instances of class MArray (with the IO monad).

Accessing the pointer to the array contents