Safe Haskell | None |
---|---|
Language | Haskell2010 |
TArrays: transactional arrays, for use in STM-like monads.
Deviations: TArray
as defined here does not have an Eq
instance, this is because the MonadSTM
TVar
type does not have
an Eq
constraint.
- data TArray stm i e
Documentation
TArray
is a transactional array, supporting the usual MArray
interface for mutable arrays.
It is currently implemented as Array ix (TVar stm e)
, but it may
be replaced by a more efficient implementation in the future (the
interface will remain the same, however).