| Copyright | (c) The University of Glasgow 2001-2012 |
|---|---|
| License | BSD-style (see the file libraries/base/LICENSE) |
| Maintainer | libraries@haskell.org |
| Stability | experimental |
| Portability | non-portable (uses Data.Array.Base) |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Array.IO.Internals
Description
Mutable boxed and unboxed arrays in the IO monad.
WARNING
This module is considered internal.
The Package Versioning Policy does not apply.
The contents of this module may change in any way whatsoever and without any warning between minor versions of this package.
Authors importing this module are expected to track development closely.
Documentation
Instances
| MArray IOArray e IO # | |
Defined in Data.Array.Base Methods getBounds :: Ix i => IOArray i e -> IO (i, i) # getNumElements :: Ix i => IOArray i e -> IO Int # newArray :: Ix i => (i, i) -> e -> IO (IOArray i e) # newArray_ :: Ix i => (i, i) -> IO (IOArray i e) # unsafeNewArray_ :: Ix i => (i, i) -> IO (IOArray i e) # | |
| Eq (IOArray i e) # | |
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 ofIx)e: the element type of the array. Only certain element types are supported: see Data.Array.MArray for a list of instances.
Instances
castIOUArray :: IOUArray ix a -> IO (IOUArray ix b) #
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 :: UArray ix e -> IO (IOUArray ix e) #
unsafeFreezeIOUArray :: IOUArray ix e -> IO (UArray ix e) #