stm 2.5.2.0 → 2.5.2.1
raw patch · 3 files changed
+11/−5 lines, 3 files
Files
- Control/Concurrent/STM/TArray.hs +6/−4
- changelog.md +4/−0
- stm.cabal +1/−1
Control/Concurrent/STM/TArray.hs view
@@ -4,9 +4,11 @@ {-# LANGUAGE Trustworthy #-} #endif -#define HAS_UNLIFTED_ARRAY defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 904+#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 904+#define HAS_UNLIFTED_ARRAY 1+#endif -#if HAS_UNLIFTED_ARRAY+#if defined(HAS_UNLIFTED_ARRAY) {-# LANGUAGE MagicHash, UnboxedTuples #-} #endif @@ -30,7 +32,7 @@ import Control.Monad.STM (STM, atomically) import Data.Typeable (Typeable)-#if HAS_UNLIFTED_ARRAY+#if defined(HAS_UNLIFTED_ARRAY) import Control.Concurrent.STM.TVar (readTVar, readTVarIO, writeTVar) import Data.Array.Base (safeRangeSize, MArray(..)) import Data.Ix (Ix)@@ -47,7 +49,7 @@ -- interface for mutable arrays. -- -- It is conceptually implemented as @Array i (TVar e)@.-#if HAS_UNLIFTED_ARRAY+#if defined(HAS_UNLIFTED_ARRAY) data TArray i e = TArray !i -- lower bound !i -- upper bound
changelog.md view
@@ -1,5 +1,9 @@ # Changelog for [`stm` package](http://hackage.haskell.org/package/stm) +## 2.5.2.1 *September 2023*++ * Eliminate reliance on undefined CPP behavior ([#75](https://github.com/haskell/stm/issues/75))+ ## 2.5.2.0 *September 2023* * Fix strictness of `stateTVar` ([#30](https://github.com/haskell/stm/ssues/30))
stm.cabal view
@@ -1,6 +1,6 @@ cabal-version: >=1.10 name: stm-version: 2.5.2.0+version: 2.5.2.1 -- don't forget to update changelog.md file! license: BSD3