GHC.IOArray

Copyright (c) The University of Glasgow 2008
License see libraries/base/LICENSE
Maintainer [email protected]
Stability internal
Portability non-portable (GHC Extensions)
Safe Haskell Unsafe
Language Haskell2010

Description

The IOArray type

newtype IOArray i e Source

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.

Constructors

IOArray (STArray RealWorld i e)
Instances
Instances details
Eq (IOArray i e)

Since: base-4.1.0.0

Instance details

Defined in GHC.IOArray

Methods

(==) :: IOArray i e -> IOArray i e -> Bool Source

(/=) :: IOArray i e -> IOArray i e -> Bool Source

newIOArray :: Ix i => (i, i) -> e -> IO (IOArray i e) Source

Build a new IOArray

unsafeReadIOArray :: IOArray i e -> Int -> IO e Source

Read a value from an IOArray

unsafeWriteIOArray :: IOArray i e -> Int -> e -> IO () Source

Write a new value into an IOArray

readIOArray :: Ix i => IOArray i e -> i -> IO e Source

Read a value from an IOArray

writeIOArray :: Ix i => IOArray i e -> i -> e -> IO () Source

Write a new value into an IOArray

boundsIOArray :: IOArray i e -> (i, i) Source

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.10.2/docs/html/libraries/base-4.14.1.0/GHC-IOArray.html