general-allocate 0.2.1.2 → 0.2.1.3
raw patch · 4 files changed
+8/−3 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- general-allocate.cabal +2/−2
- src/Control/Monad/Allocate.hs +1/−1
- src/Control/Monad/NoContinuation/Resource/Internal.hs +1/−0
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for general-allocate +## 0.2.1.3 -- 2023-03-01++* Fix build with GHC 8.10+ ## 0.2.1.2 -- 2023-02-27 * Update `primitive` dependency
general-allocate.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: general-allocate-version: 0.2.1.2+version: 0.2.1.3 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.6 }+tested-with: GHC == { 8.10.7, 9.2.6 } synopsis: Exception-safe resource management in more monads description: Write monad-generic resource-safe code that can be instantiated in both
src/Control/Monad/Allocate.hs view
@@ -88,7 +88,7 @@ generalRegister ∷ (GeneralReleaseType (AllocationException m) () → AllocationContext m ()) → m (GeneralReleaseKey m)- generalRegister rel = fst <$> (generalAllocate . GeneralAllocate $ alloc)+ generalRegister rel = fst <$> generalAllocate (GeneralAllocate alloc) where alloc ∷ (∀ x. AllocationContext m x → AllocationContext m x) → AllocationContext m (GeneralAllocated (AllocationContext m) (AllocationException m) () () ()) alloc _ = pure $ GeneralAllocated () rel
src/Control/Monad/NoContinuation/Resource/Internal.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE DataKinds #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-}