Verified
Modules 15

Data.Array.IO

experimental

Mutable boxed and unboxed arrays in the IO monad.

IO arrays with boxed elements

IOArray · Declaration information is not available.

IO arrays with unboxed elements

IOUArray · Declaration information is not available.

Overloaded mutable array interface

module Data.Array.MArray

Doing I/O with IOUArrays

hGetArray :: Handle -> IOUArray Int Word8 -> Int -> IO Int

Reads a number of Word8s from the specified Handle directly into an array.

Array in which to place the values

Returns: the number of Word8s actually read, which might be smaller than the number requested if the end of file was reached.

Handle

Handle to read from

Int

Number of Word8s to read

hPutArray :: Handle -> IOUArray Int Word8 -> Int -> IO ()

Writes an array of Word8 to the specified Handle.

Array to write from

Handle

Handle to write to

Int

Number of Word8s to write

Maintainer
libraries@haskell.org
Portability
non-portable (uses Data.Array.MArray)
Copyright
(c) The University of Glasgow 2001
License
BSD-style (see the file libraries/base/LICENSE)
Build record and source files

Verified build. The service reproduced this documentation.

Target: Linux on x86-64. Some inferred types and resolved links are not available.

Generator: aihc-haddock-7b0c8493-web-1

Metadata snapshot: 10bf2eab3c8818e91375122614fd52da6b643c8772e4ede6e094d3ea680122b7

Open the dependency plan · Download the documentation model

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.