|
Data.Array.IO | Portability | non-portable | Stability | experimental | Maintainer | libraries@haskell.org |
|
|
|
|
Contents |
- IO arrays with boxed elements
- IO arrays with unboxed elements
- Overloaded mutable array interface
- Doing I/O with IOUArrays
|
|
Description |
Mutable boxed and unboxed arrays in the IO monad.
|
|
Synopsis |
|
|
|
|
IO arrays with boxed elements |
|
data IOArray i e |
Mutable, boxed, non-strict arrays in the IO monad. The type
arguments are as follows: | Instances | |
|
|
IO arrays with unboxed elements |
|
data IOUArray i e |
Mutable, unboxed, strict arrays in the IO monad. The type
arguments are as follows: | 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...). |
|
Overloaded mutable array interface |
|
module Data.Array.MArray |
|
Doing I/O with IOUArrays |
|
hGetArray |
:: Handle | Handle to read from | -> IOUArray Int Word8 | Array in which to place the values | -> Int | Number of Word8s to read | -> IO Int | Returns: the number of Word8s actually
read, which might be smaller than the number requested
if the end of file was reached. | Reads a number of Word8s from the specified Handle directly
into an array. |
|
|
hPutArray |
|
|
Produced by Haddock version 0.3 |