Verified
Modules 15

Data.Array.IO.Internals

experimental

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.

IOArray · Declaration information is not available.

newtype IOUArray 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 of Ix)

  • e: the element type of the array. Only certain element types are supported: see Data.Array.MArray for a list of instances.

IOUArray :: (STUArray RealWorld i e) -> IOUArray i e

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...).

Instances

18
  • instance Eq (IOUArray i e)
  • instance MArray IOUArray Bool IO
  • instance MArray IOUArray Char IO
  • instance MArray IOUArray Int IO
  • instance MArray IOUArray Word IO
  • instance MArray IOUArray (Ptr a) IO
  • instance MArray IOUArray (FunPtr a) IO
  • instance MArray IOUArray Float IO
  • instance MArray IOUArray Double IO
  • instance MArray IOUArray (StablePtr a) IO
  • instance MArray IOUArray Int8 IO
  • instance MArray IOUArray Int16 IO
  • instance MArray IOUArray Int32 IO
  • instance MArray IOUArray Int64 IO
  • instance MArray IOUArray Word8 IO
  • instance MArray IOUArray Word16 IO
  • instance MArray IOUArray Word32 IO
  • instance MArray IOUArray Word64 IO
Maintainer
libraries@haskell.org
Portability
non-portable (uses Data.Array.Base)
Copyright
(c) The University of Glasgow 2001-2012
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.