resourcet 1.2.4.1 → 1.2.4.2
raw patch · 3 files changed
+9/−5 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- Data/Acquire/Internal.hs +4/−4
- resourcet.cabal +1/−1
ChangeLog.md view
@@ -1,5 +1,9 @@ # ChangeLog for resourcet +## 1.2.4.2++* Mask exceptions in `Acquire` allocation action+ ## 1.2.4.1 * Document risk of using `forkIO` within a `ResourceT` [#441](https://github.com/snoyberg/conduit/pull/441)
Data/Acquire/Internal.hs view
@@ -70,8 +70,8 @@ mkAcquire :: IO a -- ^ acquire the resource -> (a -> IO ()) -- ^ free the resource -> Acquire a-mkAcquire create free = Acquire $ \restore -> do- x <- restore create+mkAcquire create free = Acquire $ \_ -> do+ x <- create return $! Allocated x (const $ free x) -- | Same as 'mkAcquire', but the cleanup function will be informed of /how/@@ -83,8 +83,8 @@ :: IO a -- ^ acquire the resource -> (a -> ReleaseType -> IO ()) -- ^ free the resource -> Acquire a-mkAcquireType create free = Acquire $ \restore -> do- x <- restore create+mkAcquireType create free = Acquire $ \_ -> do+ x <- create return $! Allocated x (free x) -- | Allocate the given resource and provide it to the provided function. The
resourcet.cabal view
@@ -1,5 +1,5 @@ Name: resourcet-Version: 1.2.4.1+Version: 1.2.4.2 Synopsis: Deterministic allocation and freeing of scarce resources. description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/resourcet>. License: BSD3