Hello community, here is the log from the commit of package ghc-monad-peel for openSUSE:Factory checked in at 2017-04-14 13:38:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-monad-peel (Old) and /work/SRC/openSUSE:Factory/.ghc-monad-peel.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-monad-peel" Fri Apr 14 13:38:30 2017 rev:2 rq:485145 version:0.2.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-monad-peel/ghc-monad-peel.changes 2016-10-22 13:12:32.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-monad-peel.new/ghc-monad-peel.changes 2017-04-14 13:38:31.336597261 +0200 @@ -1,0 +2,5 @@ +Tue Mar 7 11:19:30 UTC 2017 - psim...@suse.com + +- Update to version 0.2.1.2 with cabal2obs. + +------------------------------------------------------------------- Old: ---- monad-peel-0.2.1.1.tar.gz New: ---- monad-peel-0.2.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-monad-peel.spec ++++++ --- /var/tmp/diff_new_pack.LYElQa/_old 2017-04-14 13:38:32.656410732 +0200 +++ /var/tmp/diff_new_pack.LYElQa/_new 2017-04-14 13:38:32.660410167 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-monad-peel # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,15 +19,14 @@ %global pkg_name monad-peel %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.2.1.1 +Version: 0.2.1.2 Release: 0 Summary: Lift control operations like exception catching through monad transformers License: BSD-3-Clause -Group: System/Libraries +Group: Development/Languages/Other Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel -# Begin cabal-rpm deps: BuildRequires: ghc-extensible-exceptions-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-transformers-devel @@ -37,7 +36,6 @@ BuildRequires: ghc-test-framework-devel BuildRequires: ghc-test-framework-hunit-devel %endif -# End cabal-rpm deps %description This package defines 'MonadPeelIO', a subset of 'MonadIO' into which generic @@ -61,20 +59,14 @@ %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install - %check -%if %{with tests} -%{cabal} test -%endif - +%cabal_test %post devel %ghc_pkg_recache ++++++ monad-peel-0.2.1.1.tar.gz -> monad-peel-0.2.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monad-peel-0.2.1.1/Control/Monad/IO/Peel.hs new/monad-peel-0.2.1.2/Control/Monad/IO/Peel.hs --- old/monad-peel-0.2.1.1/Control/Monad/IO/Peel.hs 2016-05-23 10:44:41.000000000 +0200 +++ new/monad-peel-0.2.1.2/Control/Monad/IO/Peel.hs 2017-03-02 13:25:39.000000000 +0100 @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} {- | Module : Control.Monad.IO.Peel Copyright : © Anders Kaseorg, 2010 @@ -28,6 +29,9 @@ import Control.Monad.Trans.List import Control.Monad.Trans.Maybe import Control.Monad.Trans.Error +#if MIN_VERSION_transformers(0,4,0) +import qualified Control.Monad.Trans.Except as Except +#endif import Control.Monad.Trans.Reader import Control.Monad.Trans.State import qualified Control.Monad.Trans.State.Strict as Strict @@ -72,6 +76,10 @@ peelIO = liftPeel peelIO instance (Error e, MonadPeelIO m) => MonadPeelIO (ErrorT e m) where peelIO = liftPeel peelIO +#if MIN_VERSION_transformers(0,4,0) +instance MonadPeelIO m => MonadPeelIO (Except.ExceptT e m) where + peelIO = liftPeel peelIO +#endif instance MonadPeelIO m => MonadPeelIO (ReaderT r m) where peelIO = liftPeel peelIO instance MonadPeelIO m => MonadPeelIO (StateT s m) where diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monad-peel-0.2.1.1/Control/Monad/Trans/Peel.hs new/monad-peel-0.2.1.2/Control/Monad/Trans/Peel.hs --- old/monad-peel-0.2.1.1/Control/Monad/Trans/Peel.hs 2016-05-23 10:44:41.000000000 +0200 +++ new/monad-peel-0.2.1.2/Control/Monad/Trans/Peel.hs 2017-03-02 13:25:39.000000000 +0100 @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} {- | Module : Control.Monad.Trans.Peel Copyright : © Anders Kaseorg, 2010 @@ -35,6 +36,9 @@ import Control.Monad.Trans.List import Control.Monad.Trans.Maybe import Control.Monad.Trans.Error +#if MIN_VERSION_transformers(0,4,0) +import qualified Control.Monad.Trans.Except as Except +#endif import Control.Monad.Trans.Reader import Control.Monad.Trans.State import qualified Control.Monad.Trans.State.Strict as Strict @@ -102,6 +106,13 @@ xe <- runErrorT m return $ either throwError return xe +#if MIN_VERSION_transformers(0,4,0) +instance MonadTransPeel (Except.ExceptT e) where + peel = return $ \m -> do + xe <- Except.runExceptT m + return $ either Except.throwE return xe +#endif + instance MonadTransPeel (ReaderT r) where peel = asks $ \r m -> do x <- runReaderT m r diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monad-peel-0.2.1.1/monad-peel.cabal new/monad-peel-0.2.1.2/monad-peel.cabal --- old/monad-peel-0.2.1.1/monad-peel.cabal 2016-05-23 10:44:41.000000000 +0200 +++ new/monad-peel-0.2.1.2/monad-peel.cabal 2017-03-02 13:25:39.000000000 +0100 @@ -1,5 +1,5 @@ Name: monad-peel -Version: 0.2.1.1 +Version: 0.2.1.2 Synopsis: Lift control operations like exception catching through monad transformers Description: This package defines @MonadPeelIO@, a subset of @MonadIO@ into which @@ -18,7 +18,7 @@ Category: Control Build-type: Simple Cabal-version: >= 1.8 -Tested-With: GHC == 8.0.1 +Tested-With: GHC == 8.0.2 Source-repository head type: git @@ -27,7 +27,7 @@ Source-repository this type: git location: https://github.com/l29ah/monad-peel.git - tag: 0.2.1.1 + tag: 0.2.1.2 Library Exposed-modules: