resourcet 0.3.2 → 0.3.2.1
raw patch · 2 files changed
+3/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Control/Monad/Trans/Resource.hs +2/−2
- resourcet.cabal +1/−1
Control/Monad/Trans/Resource.hs view
@@ -218,7 +218,7 @@ register' istate rel = I.atomicModifyIORef istate $ \rm -> case rm of ReleaseMap key rf m ->- ( ReleaseMap (key + 1) rf (IntMap.insert key rel m)+ ( ReleaseMap (key - 1) rf (IntMap.insert key rel m) , ReleaseKey key ) ReleaseMapClosed -> throw $ InvalidAccess "register'"@@ -291,7 +291,7 @@ runResourceT :: MonadBaseControl IO m => ResourceT m a -> m a runResourceT (ResourceT r) = do istate <- liftBase $ I.newIORef- $ ReleaseMap minBound minBound IntMap.empty+ $ ReleaseMap maxBound minBound IntMap.empty bracket_ (stateAlloc istate) (stateCleanup istate)
resourcet.cabal view
@@ -1,5 +1,5 @@ Name: resourcet-Version: 0.3.2+Version: 0.3.2.1 Synopsis: Deterministic allocation and freeing of scarce resources. Description: This package was originally included with the conduit package, and has since been split off. For more information, please see <http://www.yesodweb.com/book/conduits>.