HORIZON HASKELLDocslts/ghc-10.0.xa8896112026-10-18Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · a889611 · 2026-10-18

Moduleconcurrency-1.11.0.3Haskell2010

Control.Concurrent.Classy.STM.TArray

Deviations: TArray as defined here does not have an Eq instance, this is because the MonadSTM TVar type does not have an Eq constraint.

  • 1 type
newtypenewtype TArray (stm :: Type -> Type) i e
#

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

Instances1MArray
  • MonadSTM stm => MArray (TArray stm) e stmDefined in concurrency-1.11.0.3 · Control.Concurrent.Classy.STM.TArray