bluefin-internal 0.3.2.0 → 0.3.3.0
raw patch · 3 files changed
+17/−1 lines, 3 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
+ Bluefin.Internal: finally :: forall (es :: Effects) b. Eff es b -> Eff es () -> Eff es b
Files
- CHANGELOG.md +4/−0
- bluefin-internal.cabal +1/−1
- src/Bluefin/Internal.hs +12/−0
CHANGELOG.md view
@@ -1,3 +1,7 @@+# 0.3.3.0++* Add `finally`+ # 0.3.2.0 * Add `Bluefin.Internal.CloneHandle`
bluefin-internal.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: bluefin-internal-version: 0.3.2.0+version: 0.3.3.0 license: MIT license-file: LICENSE author: Tom Ellis
src/Bluefin/Internal.hs view
@@ -764,6 +764,18 @@ (effToIO . useImpl . after) (effToIO . useImpl . body) +finally ::+ -- | Run the body+ Eff es b ->+ Eff es () ->+ Eff es b+finally body after =+ unsafeProvideIO $ \io -> do+ withEffToIO_ io $ \effToIO -> do+ Control.Exception.finally+ (effToIO (useImpl body))+ (effToIO (useImpl after))+ withStateInIO :: (e1 :> es, e2 :> es) => IOE e1 ->