Hello community, here is the log from the commit of package ghc-resourcet for openSUSE:Factory checked in at 2018-10-25 08:18:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-resourcet (Old) and /work/SRC/openSUSE:Factory/.ghc-resourcet.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-resourcet" Thu Oct 25 08:18:19 2018 rev:20 rq:642893 version:1.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-resourcet/ghc-resourcet.changes 2018-07-21 10:22:48.254992479 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-resourcet.new/ghc-resourcet.changes 2018-10-25 08:18:51.860004418 +0200 @@ -1,0 +2,8 @@ +Wed Oct 10 19:23:56 UTC 2018 - [email protected] + +- Update resourcet to version 1.2.2. + ## 1.2.2 + + * Add `MonadFail` instance for `ResourceT`. + +------------------------------------------------------------------- Old: ---- resourcet-1.2.1.tar.gz New: ---- resourcet-1.2.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-resourcet.spec ++++++ --- /var/tmp/diff_new_pack.93IhOC/_old 2018-10-25 08:18:52.344004205 +0200 +++ /var/tmp/diff_new_pack.93IhOC/_new 2018-10-25 08:18:52.344004205 +0200 @@ -12,14 +12,14 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %global pkg_name resourcet %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.2.1 +Version: 1.2.2 Release: 0 Summary: Deterministic allocation and freeing of scarce resources License: BSD-3-Clause ++++++ resourcet-1.2.1.tar.gz -> resourcet-1.2.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resourcet-1.2.1/ChangeLog.md new/resourcet-1.2.2/ChangeLog.md --- old/resourcet-1.2.1/ChangeLog.md 2018-04-10 09:32:39.000000000 +0200 +++ new/resourcet-1.2.2/ChangeLog.md 2018-10-06 21:25:16.000000000 +0200 @@ -1,3 +1,7 @@ +## 1.2.2 + +* Add `MonadFail` instance for `ResourceT`. + ## 1.2.1 * Support `exceptions-0.10`. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resourcet-1.2.1/Control/Monad/Trans/Resource/Internal.hs new/resourcet-1.2.2/Control/Monad/Trans/Resource/Internal.hs --- old/resourcet-1.2.1/Control/Monad/Trans/Resource/Internal.hs 2018-04-10 09:34:26.000000000 +0200 +++ new/resourcet-1.2.2/Control/Monad/Trans/Resource/Internal.hs 2018-10-06 21:25:16.000000000 +0200 @@ -27,6 +27,7 @@ import Control.Exception (throw,Exception,SomeException) import Control.Applicative (Applicative (..), Alternative(..)) import Control.Monad (MonadPlus(..)) +import Control.Monad.Fail (MonadFail(..)) import Control.Monad.Fix (MonadFix(..)) import Control.Monad.IO.Unlift import Control.Monad.Trans.Class (MonadTrans (..)) @@ -237,6 +238,10 @@ let ResourceT f' = f a f' r +-- | @since 1.2.2 +instance MonadFail m => MonadFail (ResourceT m) where + fail = lift . Control.Monad.Fail.fail + -- | @since 1.1.8 instance MonadFix m => MonadFix (ResourceT m) where mfix f = ResourceT $ \r -> mfix $ \a -> unResourceT (f a) r diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resourcet-1.2.1/Control/Monad/Trans/Resource.hs new/resourcet-1.2.2/Control/Monad/Trans/Resource.hs --- old/resourcet-1.2.1/Control/Monad/Trans/Resource.hs 2018-03-14 07:08:08.000000000 +0100 +++ new/resourcet-1.2.2/Control/Monad/Trans/Resource.hs 2018-06-21 14:29:43.000000000 +0200 @@ -86,7 +86,7 @@ -- | Unprotect resource from cleanup actions; this allows you to send -- resource into another resourcet process and reregister it there. --- It returns an release action that should be run in order to clean +-- It returns a release action that should be run in order to clean -- resource or Nothing in case if resource is already freed. -- -- Since 0.4.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resourcet-1.2.1/README.md new/resourcet-1.2.2/README.md --- old/resourcet-1.2.1/README.md 2018-02-25 16:29:17.000000000 +0100 +++ new/resourcet-1.2.2/README.md 2018-06-21 14:29:43.000000000 +0200 @@ -319,4 +319,4 @@ ## Conclusion -ResourceT provides you with a flexible means of allocating resources in an exception safe manner. Its main advantage over the simpler bracket pattern is that it allows interleaving of allocations, allowing for more complicated programs to be created efficiently. If your needs are simple, stick with bracket. If you have need of something more complex, resourcet may be your answer. For understanding how it works under the hook, refer [here](https://www.fpcomplete.com/blog/2017/06/understanding-resourcet). +ResourceT provides you with a flexible means of allocating resources in an exception safe manner. Its main advantage over the simpler bracket pattern is that it allows interleaving of allocations, allowing for more complicated programs to be created efficiently. If your needs are simple, stick with bracket. If you have need of something more complex, resourcet may be your answer. For understanding how it works under the hood, refer [here](https://www.fpcomplete.com/blog/2017/06/understanding-resourcet). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resourcet-1.2.1/resourcet.cabal new/resourcet-1.2.2/resourcet.cabal --- old/resourcet-1.2.1/resourcet.cabal 2018-04-10 09:35:50.000000000 +0200 +++ new/resourcet-1.2.2/resourcet.cabal 2018-10-06 21:25:16.000000000 +0200 @@ -1,5 +1,5 @@ Name: resourcet -Version: 1.2.1 +Version: 1.2.2 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
