stm-io-hooks-1.1.2: Launch your IO-actions from within the STM monad

Copyright(c) Peter Robinson 2009 The University of Glasgow 2004
LicenseBSD-style (see the file LICENSE)
MaintainerPeter Robinson <thaldyron@gmail.com>
Stabilityexperimental
Portabilitynon-portable (requires STM)
Safe HaskellNone
LanguageHaskell2010

Control.Concurrent.AdvSTM.TArray

Description

Synopsis

Documentation

data TArray i e Source #

TArray is a transactional array, supporting the usual MArray interface for mutable arrays.

Instances
MonadAdvSTM m => MArray TArray e m Source # 
Instance details

Defined in Control.Concurrent.AdvSTM.TArray

Methods

getBounds :: Ix i => TArray i e -> m (i, i) #

getNumElements :: Ix i => TArray i e -> m Int

newArray :: Ix i => (i, i) -> e -> m (TArray i e) #

newArray_ :: Ix i => (i, i) -> m (TArray i e) #

unsafeNewArray_ :: Ix i => (i, i) -> m (TArray i e)

unsafeRead :: Ix i => TArray i e -> Int -> m e

unsafeWrite :: Ix i => TArray i e -> Int -> e -> m ()