unliftio 0.2.8.0 → 0.2.8.1
raw patch · 3 files changed
+15/−2 lines, 3 filesdep ~basedep ~stmPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base, stm
API changes (from Hackage documentation)
- UnliftIO.STM: newTBQueue :: () => Int -> STM TBQueue a
+ UnliftIO.STM: newTBQueue :: () => Natural -> STM TBQueue a
- UnliftIO.STM: newTBQueueIO :: MonadIO m => Int -> m (TBQueue a)
+ UnliftIO.STM: newTBQueueIO :: MonadIO m => Natural -> m (TBQueue a)
Files
- ChangeLog.md +4/−0
- src/UnliftIO/STM.hs +9/−0
- unliftio.cabal +2/−2
ChangeLog.md view
@@ -1,5 +1,9 @@ # Changelog for unliftio +## 0.2.8.1++* Support for `stm-2.5.0.0`+ ## 0.2.8.0 * Add 'UnliftIO.Memoize'
src/UnliftIO/STM.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} -- | Lifted version of "Control.Concurrent.STM" -- -- @since 0.2.1.0@@ -84,6 +85,10 @@ import Control.Monad.IO.Unlift import System.Mem.Weak (Weak) +#if MIN_VERSION_stm(2, 5, 0)+import GHC.Natural (Natural)+#endif+ -- | Lifted version of 'STM.atomically' -- -- @since 0.2.1.0@@ -165,5 +170,9 @@ -- | Lifted version of 'STM.newTBQueueIO' -- -- @since 0.2.1.0+#if MIN_VERSION_stm(2, 5, 0)+newTBQueueIO :: MonadIO m => Natural -> m (TBQueue a)+#else newTBQueueIO :: MonadIO m => Int -> m (TBQueue a)+#endif newTBQueueIO = liftIO . STM.newTBQueueIO
unliftio.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 943e82967e90e314577381f82ab9a07663e77328d1364a19289e0c5637e3f2d6+-- hash: b929fccb27c59fc9bc0f46c3f81f101436a852090cd8bc99591e2a71d53e65f1 name: unliftio-version: 0.2.8.0+version: 0.2.8.1 synopsis: The MonadUnliftIO typeclass for unlifting monads to IO (batteries included) description: Please see the documentation and README at <https://www.stackage.org/package/unliftio> category: Control