| Copyright | (c) The University of Glasgow 2001 | 
|---|---|
| License | BSD-style (see the file libraries/base/LICENSE) | 
| Maintainer | libraries@haskell.org | 
| Stability | experimental | 
| Portability | non-portable (uses Data.Array.MArray) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Data.Array.IO
Description
Mutable boxed and unboxed arrays in the IO monad.
IO arrays with boxed elements
An IOArray is a mutable, boxed, non-strict array 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.
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) unsafeRead :: Ix i => IOArray i e -> Int -> IO e unsafeWrite :: Ix i => IOArray i e -> Int -> e -> IO () | |
| Eq (IOArray i e) | Since: base-4.1.0.0 | 
IO arrays with unboxed elements
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.
Instances
Overloaded mutable array interface
module Data.Array.MArray