array-0.2.0.0: Mutable and immutable arraysSource codeContentsIndex
Data.Array.IO.Internals
Portabilitynon-portable (uses Data.Array.Base)
Stabilityexperimental
Maintainerlibraries@haskell.org
Description
Mutable boxed and unboxed arrays in the IO monad.
Synopsis
IOArray (IOArray)
newtype IOUArray i e = IOUArray (STUArray RealWorld i e)
castIOUArray :: IOUArray ix a -> IO (IOUArray ix b)
unsafeThawIOUArray :: Ix ix => UArray ix e -> IO (IOUArray ix e)
Documentation
IOArray (IOArray)
newtype IOUArray i e Source

Mutable, unboxed, strict arrays in the IO monad. The type arguments are as follows:

  • i: the index type of the array (should be an instance of Ix)
  • e: the element type of the array. Only certain element types are supported: see Data.Array.MArray for a list of instances.
Constructors
IOUArray (STUArray RealWorld i e)
show/hide Instances
castIOUArray :: IOUArray ix a -> IO (IOUArray ix b)Source
Casts an IOUArray with one element type into one with a different element type. All the elements of the resulting array are undefined (unless you know what you're doing...).
unsafeThawIOUArray :: Ix ix => UArray ix e -> IO (IOUArray ix e)Source
Produced by Haddock version 2.4.2