commit ghc-resourcet for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-resourcet for openSUSE:Factory checked in at 2022-08-01 21:31:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-resourcet (Old) and /work/SRC/openSUSE:Factory/.ghc-resourcet.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ghc-resourcet" Mon Aug 1 21:31:19 2022 rev:29 rq:987763 version:1.2.6 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-resourcet/ghc-resourcet.changes 2022-02-11 23:11:29.891308433 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-resourcet.new.1533/ghc-resourcet.changes 2022-08-01 21:32:07.201952725 +0200 @@ -1,0 +2,16 @@ +Thu Jun 30 06:16:07 UTC 2022 - Peter Simons <psimons@suse.com> + +- Update resourcet to version 1.2.6. + ## 1.2.6 + + * Add `allocateU` [#490](https://github.com/snoyberg/conduit/pull/490) + +------------------------------------------------------------------- +Tue May 10 13:16:48 UTC 2022 - Peter Simons <psimons@suse.com> + +- Update resourcet to version 1.2.5. + ## 1.2.5 + + * Support `transformers-0.6` / `mtl-2.3` + +------------------------------------------------------------------- Old: ---- resourcet-1.2.4.3.tar.gz resourcet.cabal New: ---- resourcet-1.2.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-resourcet.spec ++++++ --- /var/tmp/diff_new_pack.zH2EyO/_old 2022-08-01 21:32:07.917954780 +0200 +++ /var/tmp/diff_new_pack.zH2EyO/_new 2022-08-01 21:32:07.921954791 +0200 @@ -19,13 +19,12 @@ %global pkg_name resourcet %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.2.4.3 +Version: 1.2.6 Release: 0 Summary: Deterministic allocation and freeing of scarce resources License: BSD-3-Clause URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-exceptions-devel @@ -55,7 +54,6 @@ %prep %autosetup -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++++++ resourcet-1.2.4.3.tar.gz -> resourcet-1.2.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resourcet-1.2.4.3/ChangeLog.md new/resourcet-1.2.6/ChangeLog.md --- old/resourcet-1.2.4.3/ChangeLog.md 2021-08-05 04:20:47.000000000 +0200 +++ new/resourcet-1.2.6/ChangeLog.md 2022-06-30 08:15:37.000000000 +0200 @@ -1,5 +1,12 @@ # ChangeLog for resourcet +## 1.2.6 + +* Add `allocateU` [#490](https://github.com/snoyberg/conduit/pull/490) + +## 1.2.5 + +* Support `transformers-0.6` / `mtl-2.3` ## 1.2.4.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resourcet-1.2.4.3/Control/Monad/Trans/Resource/Internal.hs new/resourcet-1.2.6/Control/Monad/Trans/Resource/Internal.hs --- old/resourcet-1.2.4.3/Control/Monad/Trans/Resource/Internal.hs 2021-08-05 04:20:47.000000000 +0200 +++ new/resourcet-1.2.6/Control/Monad/Trans/Resource/Internal.hs 2022-05-10 15:11:58.000000000 +0200 @@ -40,7 +40,9 @@ import Control.Monad.Writer.Class ( MonadWriter (..) ) import Control.Monad.Trans.Identity ( IdentityT) +#if !MIN_VERSION_transformers(0,6,0) import Control.Monad.Trans.List ( ListT ) +#endif import Control.Monad.Trans.Maybe ( MaybeT ) import Control.Monad.Trans.Except ( ExceptT ) import Control.Monad.Trans.Reader ( ReaderT ) @@ -267,7 +269,9 @@ #define GO(T) instance (MonadResource m) => MonadResource (T m) where liftResourceT = lift . liftResourceT #define GOX(X, T) instance (X, MonadResource m) => MonadResource (T m) where liftResourceT = lift . liftResourceT GO(IdentityT) +#if !MIN_VERSION_transformers(0,6,0) GO(ListT) +#endif GO(MaybeT) GO(ExceptT e) GO(ReaderT r) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resourcet-1.2.4.3/UnliftIO/Resource.hs new/resourcet-1.2.6/UnliftIO/Resource.hs --- old/resourcet-1.2.4.3/UnliftIO/Resource.hs 2021-08-05 04:20:47.000000000 +0200 +++ new/resourcet-1.2.6/UnliftIO/Resource.hs 2022-06-30 08:15:37.000000000 +0200 @@ -5,6 +5,7 @@ ( -- * UnliftIO variants runResourceT , liftResourceT + , allocateU -- * Reexports , module Control.Monad.Trans.Resource ) where @@ -25,3 +26,14 @@ -- @since 1.1.10 liftResourceT :: MonadIO m => ResourceT IO a -> ResourceT m a liftResourceT (ResourceT f) = ResourceT $ liftIO . f + +-- | Unlifted 'allocate'. +-- +-- @since 1.2.6 +allocateU + :: (MonadUnliftIO m, MonadResource m) + => m a + -> (a -> m ()) + -> m (ReleaseKey, a) +allocateU alloc free = withRunInIO $ \run -> + run $ allocate (run alloc) (run . free) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resourcet-1.2.4.3/resourcet.cabal new/resourcet-1.2.6/resourcet.cabal --- old/resourcet-1.2.4.3/resourcet.cabal 2021-08-05 04:20:47.000000000 +0200 +++ new/resourcet-1.2.6/resourcet.cabal 2022-06-30 08:15:37.000000000 +0200 @@ -1,5 +1,5 @@ Name: resourcet -Version: 1.2.4.3 +Version: 1.2.6 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 @@ -19,12 +19,12 @@ Data.Acquire Data.Acquire.Internal UnliftIO.Resource - Build-depends: base >= 4.9 && < 5 + Build-depends: base >= 4.12 && < 5 , containers , transformers >= 0.4 - , mtl >= 2.0 && < 2.3 + , mtl >= 2.0 && < 2.4 , exceptions (== 0.8.* || == 0.10.*) - , unliftio-core + , unliftio-core >= 0.1.1.0 , primitive ghc-options: -Wall
participants (1)
-
Source-Sync