packages feed

fx 0.11 → 0.11.1

raw patch · 2 files changed

+9/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

fx.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.4 name: fx-version: 0.11+version: 0.11.1 synopsis: Modular effectful computations with explicit environments and errors description:   A lightweight library for writing effectful computations with explicit
library/Fx/Scope.hs view
@@ -41,6 +41,14 @@   bimap lf rf (Scope m) = Scope (bimap lf (bimap rf (first lf)) m)   second = fmap +instance MonadError err (Scope err) where+  throwError err = Scope (throwError err)+  catchError (Scope m) handler =+    Scope $+      catchError m $ \err ->+        let Scope m2 = handler err+         in m2+ -- | -- Create a resource provider from an acquiring effect. --