Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-monad-logger for 
openSUSE:Factory checked in at 2023-06-22 23:25:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-monad-logger (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-monad-logger.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-monad-logger"

Thu Jun 22 23:25:28 2023 rev:32 rq:1094438 version:0.3.40

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-monad-logger/ghc-monad-logger.changes        
2023-04-04 21:21:37.681607305 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-monad-logger.new.15902/ghc-monad-logger.changes 
    2023-06-22 23:25:54.425794457 +0200
@@ -1,0 +2,9 @@
+Mon Jun  5 11:14:59 UTC 2023 - Peter Simons <psim...@suse.com>
+
+- Update monad-logger to version 0.3.40.
+  ## 0.3.40
+
+  * Relax `fast-logger` upper bound from 3.2 to 3.3
+  * Add `Alternative` instances for `LoggingT` and `NoLoggingT`
+
+-------------------------------------------------------------------

Old:
----
  monad-logger-0.3.39.tar.gz
  monad-logger.cabal

New:
----
  monad-logger-0.3.40.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-monad-logger.spec ++++++
--- /var/tmp/diff_new_pack.Aa0XrR/_old  2023-06-22 23:25:54.929797027 +0200
+++ /var/tmp/diff_new_pack.Aa0XrR/_new  2023-06-22 23:25:54.933797048 +0200
@@ -19,13 +19,12 @@
 %global pkg_name monad-logger
 %global pkgver %{pkg_name}-%{version}
 Name:           ghc-%{pkg_name}
-Version:        0.3.39
+Version:        0.3.40
 Release:        0
 Summary:        A class of monads which can log messages
 License:        MIT
 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-base-devel
 BuildRequires:  ghc-base-prof
@@ -99,7 +98,6 @@
 
 %prep
 %autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++++++ monad-logger-0.3.39.tar.gz -> monad-logger-0.3.40.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monad-logger-0.3.39/ChangeLog.md 
new/monad-logger-0.3.40/ChangeLog.md
--- old/monad-logger-0.3.39/ChangeLog.md        2023-01-26 12:39:15.000000000 
+0100
+++ new/monad-logger-0.3.40/ChangeLog.md        2023-06-05 13:14:46.000000000 
+0200
@@ -1,5 +1,10 @@
 # ChangeLog for monad-logger
 
+## 0.3.40
+
+* Relax `fast-logger` upper bound from 3.2 to 3.3
+* Add `Alternative` instances for `LoggingT` and `NoLoggingT`
+
 ## 0.3.39
 
 * Make the previous change backwards compatible with CPP
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monad-logger-0.3.39/Control/Monad/Logger.hs 
new/monad-logger-0.3.40/Control/Monad/Logger.hs
--- old/monad-logger-0.3.39/Control/Monad/Logger.hs     2023-01-26 
12:38:50.000000000 +0100
+++ new/monad-logger-0.3.40/Control/Monad/Logger.hs     2023-06-05 
13:14:46.000000000 +0200
@@ -113,7 +113,7 @@
 import Data.Functor ((<$>))
 import Data.Monoid (Monoid)
 
-import Control.Applicative (Applicative (..), WrappedMonad(..))
+import Control.Applicative (Alternative (..), Applicative (..), 
WrappedMonad(..))
 import Control.Concurrent.Chan (Chan(),writeChan,readChan)
 import Control.Concurrent.STM
 import Control.Concurrent.STM.TBChan
@@ -389,7 +389,10 @@
 --
 -- @since 0.2.4
 newtype NoLoggingT m a = NoLoggingT { runNoLoggingT :: m a }
-  deriving (Functor, Applicative, Monad, MonadIO, MonadThrow, MonadCatch, 
MonadMask, MonadActive, MonadBase b)
+  deriving (
+    Functor, Applicative, Monad, MonadIO, MonadThrow, MonadCatch, MonadMask, 
MonadActive, MonadBase b
+    , Alternative -- ^ @since 0.3.40
+    )
 
 -- For some reason GND is a fool on GHC 7.10 and older, we have to help it by 
providing the context explicitly.
 deriving instance MonadResource m => MonadResource (NoLoggingT m)
@@ -598,6 +601,11 @@
     {-# INLINE (<*>) #-}
 #endif
 
+-- | @since 0.3.40
+instance (Alternative m) => Alternative (LoggingT m) where
+  empty = LoggingT (const empty)
+  LoggingT x <|> LoggingT y = LoggingT (\f -> x f <|> y f)
+
 #if MIN_VERSION_base(4, 9, 0)
 -- | @since 0.3.30
 instance (Fail.MonadFail m) => Fail.MonadFail (LoggingT m) where
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monad-logger-0.3.39/monad-logger.cabal 
new/monad-logger-0.3.40/monad-logger.cabal
--- old/monad-logger-0.3.39/monad-logger.cabal  2023-01-26 12:39:39.000000000 
+0100
+++ new/monad-logger-0.3.40/monad-logger.cabal  2023-06-05 13:14:48.000000000 
+0200
@@ -5,7 +5,7 @@
 -- see: https://github.com/sol/hpack
 
 name:           monad-logger
-version:        0.3.39
+version:        0.3.40
 synopsis:       A class of monads which can log messages.
 description:    See README and Haddocks at 
<https://www.stackage.org/package/monad-logger>
 category:       System
@@ -40,7 +40,7 @@
     , conduit >=1.0 && <1.4
     , conduit-extra >=1.1 && <1.4
     , exceptions >=0.6 && <0.11
-    , fast-logger >=2.1 && <3.2
+    , fast-logger >=2.1 && <3.3
     , lifted-base
     , monad-control >=1.0
     , monad-loops

Reply via email to