io-classes:strict-stm
Safe HaskellNone
LanguageHaskell2010

Control.Concurrent.Class.MonadSTM.Strict.TArray

Description

This module corresponds to TArray in "stm" package

Documentation

data StrictTArray (m :: Type -> Type) i e Source #

Instances

Instances details
(MArray (TArray m) e stm, Monad stm) => MArray (StrictTArray m) e stm Source # 
Instance details

Defined in Control.Concurrent.Class.MonadSTM.Strict.TArray

Methods

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

getNumElements :: Ix i => StrictTArray m i e -> stm Int #

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

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

unsafeNewArray_ :: Ix i => (i, i) -> stm (StrictTArray m i e) #

unsafeRead :: Ix i => StrictTArray m i e -> Int -> stm e #

unsafeWrite :: Ix i => StrictTArray m i e -> Int -> e -> stm () #

type LazyTArray (m :: Type -> Type) = TArray m Source #

fromLazyTArray :: forall (m :: Type -> Type) i e. LazyTArray m i e -> StrictTArray m i e Source #