Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package ghc-transformers-except for
openSUSE:Factory checked in at 2021-08-25 20:57:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-transformers-except (Old)
and /work/SRC/openSUSE:Factory/.ghc-transformers-except.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-transformers-except"
Wed Aug 25 20:57:12 2021 rev:3 rq:912640 version:0.1.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-transformers-except/ghc-transformers-except.changes
2020-12-22 11:48:04.793940974 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-transformers-except.new.1899/ghc-transformers-except.changes
2021-08-25 20:58:18.533153261 +0200
@@ -1,0 +2,6 @@
+Thu Jul 15 16:16:21 UTC 2021 - [email protected]
+
+- Update transformers-except to version 0.1.2.
+ Upstream does not provide a change log file.
+
+-------------------------------------------------------------------
Old:
----
transformers-except-0.1.1.tar.gz
New:
----
transformers-except-0.1.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-transformers-except.spec ++++++
--- /var/tmp/diff_new_pack.bvkkeu/_old 2021-08-25 20:58:19.109152506 +0200
+++ /var/tmp/diff_new_pack.bvkkeu/_new 2021-08-25 20:58:19.113152500 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-transformers-except
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%global pkg_name transformers-except
Name: ghc-%{pkg_name}
-Version: 0.1.1
+Version: 0.1.2
Release: 0
Summary: An Except monad transformer with
License: BSD-3-Clause
++++++ transformers-except-0.1.1.tar.gz -> transformers-except-0.1.2.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/transformers-except-0.1.1/Setup.hs
new/transformers-except-0.1.2/Setup.hs
--- old/transformers-except-0.1.1/Setup.hs 2019-07-30 12:31:03.000000000
+0200
+++ new/transformers-except-0.1.2/Setup.hs 1970-01-01 01:00:00.000000000
+0100
@@ -1,2 +0,0 @@
-import Distribution.Simple
-main = defaultMain
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/transformers-except-0.1.1/src/Control/Monad/Trans/Except/Exit.hs
new/transformers-except-0.1.2/src/Control/Monad/Trans/Except/Exit.hs
--- old/transformers-except-0.1.1/src/Control/Monad/Trans/Except/Exit.hs
2019-07-30 12:31:03.000000000 +0200
+++ new/transformers-except-0.1.2/src/Control/Monad/Trans/Except/Exit.hs
2001-09-09 03:46:40.000000000 +0200
@@ -3,17 +3,11 @@
, orDieWithCode
) where
-import Control.Applicative (pure)
-import Control.Monad ((>>=), (>>))
-
-import Data.Either (either)
-import Data.Function ((.))
-import Data.Int (Int)
import Data.Text (Text)
import qualified Data.Text as T
import System.Exit (ExitCode(..), exitWith)
-import System.IO (IO, stderr, hPutStrLn)
+import System.IO (stderr, hPutStrLn)
import Control.Monad.Trans.Except (ExceptT, runExceptT)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/transformers-except-0.1.1/src/Control/Monad/Trans/Except/Extra.hs
new/transformers-except-0.1.2/src/Control/Monad/Trans/Except/Extra.hs
--- old/transformers-except-0.1.1/src/Control/Monad/Trans/Except/Extra.hs
2019-07-30 12:31:03.000000000 +0200
+++ new/transformers-except-0.1.2/src/Control/Monad/Trans/Except/Extra.hs
2001-09-09 03:46:40.000000000 +0200
@@ -42,6 +42,8 @@
, bracketExceptT
, bracketExceptionT
+
+ , hushM
) where
import Control.Exception (Exception, IOException, SomeException)
@@ -53,7 +55,7 @@
import Control.Monad.Trans.Class (lift)
import Control.Monad.Trans.Except
-import Data.Maybe (Maybe, maybe)
+import Data.Maybe (Maybe(..), maybe)
import Data.Either (Either(..), either)
import Data.Foldable (Foldable, foldr)
import Data.Function (($), (.), const, id, flip)
@@ -282,3 +284,11 @@
z <- f a'
return $ either id (const b) z
{-# INLINE bracketF #-}
+
+-- | Convert an Either to a Maybe and execute the supplied handler
+-- in the Left case.
+hushM :: Monad m => Either e a -> (e -> m ()) -> m (Maybe a)
+hushM r f = case r of
+ Right a -> return (Just a)
+ Left e -> f e >> return Nothing
+{-# INLINE hushM #-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/transformers-except-0.1.1/transformers-except.cabal
new/transformers-except-0.1.2/transformers-except.cabal
--- old/transformers-except-0.1.1/transformers-except.cabal 2019-07-30
12:31:03.000000000 +0200
+++ new/transformers-except-0.1.2/transformers-except.cabal 2001-09-09
03:46:40.000000000 +0200
@@ -1,15 +1,21 @@
+cabal-version: 3.0
name: transformers-except
-version: 0.1.1
-license: BSD3
+version: 0.1.2
+license: BSD-3-Clause
license-file: LICENSE
author: Tim McGilchrist <[email protected]>
maintainer: Tim McGilchrist <[email protected]>
copyright: (c) 2017 Tim McGilchrist
synopsis: An Except monad transformer with
category: System
-cabal-version: >= 1.8
build-type: Simple
-tested-with: GHC == 8.6.2, GHC == 8.4.4, GHC == 8.2.2, GHC == 8.0.2,
GHC == 7.10.3
+tested-with: GHC == 8.10.5
+ , GHC == 8.8.4
+ , GHC == 8.6.5
+ , GHC == 8.4.4
+ , GHC == 8.2.2
+ , GHC == 8.0.2
+
description: Extra pieces for working with Except
homepage: http://github.com/tmcgilchrist/transformers-either/
bug-reports: http://github.com/tmcgilchrist/transformers-either/issues
@@ -26,7 +32,7 @@
ghc-options:
-Wall
-
+ default-language: Haskell98
hs-source-dirs:
src