packages feed

general-allocate 0.2.1.1 → 0.2.1.2

raw patch · 3 files changed

+9/−4 lines, 3 filesdep ~primitivePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: primitive

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for general-allocate +## 0.2.1.2 -- 2023-02-27++* Update `primitive` dependency+ ## 0.2.1.1 -- 2023-01-17  * Warn about https://gitlab.haskell.org/ghc/ghc/-/issues/16478 in `MonadWithExceptable` haddock
general-allocate.cabal view
@@ -1,6 +1,6 @@ cabal-version:      3.0 name:               general-allocate-version:            0.2.1.1+version:            0.2.1.2 license:            Apache-2.0 license-file:       LICENSE author:             Shea Levy@@ -8,7 +8,7 @@ copyright:          Coypright 2022 Shea Levy. category:           Control, Exceptions extra-source-files: CHANGELOG.md-tested-with:        GHC == { 9.2.4 }+tested-with:        GHC == { 9.2.6 } synopsis:           Exception-safe resource management in more monads description:   Write monad-generic resource-safe code that can be instantiated in both@@ -51,7 +51,7 @@     , base             ^>= { 4.14, 4.16, 4.17 }     , containers       ^>= { 0.6 }     , mtl              ^>= { 2.2, 2.3 }-    , primitive        ^>= { 0.7 }+    , primitive        ^>= { 0.8 }     , resourcet        ^>= { 1.3 }     , safe-exceptions  ^>= { 0.1 }     , transformers     ^>= { 0.5, 0.6 }
src/Control/Monad/With.hs view
@@ -27,6 +27,7 @@ module Control.Monad.With where  import Control.Exception.Safe+import Control.Monad import Control.Monad.Except import qualified Control.Monad.RWS.Lazy as L import Control.Monad.RWS.Strict@@ -119,7 +120,7 @@ onFailure go err = generalWith alloc (const go)  where   alloc = GeneralAllocate $ \_ → pure $ GeneralAllocated () rel-  rel (ReleaseFailure e) = err e >> pure ()+  rel (ReleaseFailure e) = void $ err e   rel _ = pure ()  {- | Run some action after another one completes in an exception-safe manner.