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 2022-10-13 15:42:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-monad-logger (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-monad-logger.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-monad-logger"

Thu Oct 13 15:42:35 2022 rev:27 rq:1008493 version:0.3.37

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-monad-logger/ghc-monad-logger.changes        
2022-08-01 21:30:26.797664671 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-monad-logger.new.2275/ghc-monad-logger.changes  
    2022-10-13 15:42:44.522807832 +0200
@@ -1,0 +2,8 @@
+Wed Aug 24 08:33:58 UTC 2022 - Peter Simons <[email protected]>
+
+- Update monad-logger to version 0.3.37.
+  ## 0.3.37
+
+  * Add `Semigroup`/`Monoid` instances to `LoggingT`, `NoLoggingT`, and 
`WriterLoggingT`
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ ghc-monad-logger.spec ++++++
--- /var/tmp/diff_new_pack.ufJCcL/_old  2022-10-13 15:42:45.126809011 +0200
+++ /var/tmp/diff_new_pack.ufJCcL/_new  2022-10-13 15:42:45.134809027 +0200
@@ -18,13 +18,12 @@
 
 %global pkg_name monad-logger
 Name:           ghc-%{pkg_name}
-Version:        0.3.36
+Version:        0.3.37
 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/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-conduit-devel
@@ -62,7 +61,6 @@
 
 %prep
 %autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++++++ monad-logger-0.3.36.tar.gz -> monad-logger-0.3.37.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monad-logger-0.3.36/ChangeLog.md 
new/monad-logger-0.3.37/ChangeLog.md
--- old/monad-logger-0.3.36/ChangeLog.md        2020-11-24 18:16:13.000000000 
+0100
+++ new/monad-logger-0.3.37/ChangeLog.md        2022-08-24 09:34:57.000000000 
+0200
@@ -1,5 +1,9 @@
 # ChangeLog for monad-logger
 
+## 0.3.37
+
+* Add `Semigroup`/`Monoid` instances to `LoggingT`, `NoLoggingT`, and 
`WriterLoggingT`
+
 ## 0.3.36
 
 * Export the `defaultOutput` function, useful for defining custom instances of 
`MonadLogger`. [#29](https://github.com/snoyberg/monad-logger/pull/29)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monad-logger-0.3.36/Control/Monad/Logger.hs 
new/monad-logger-0.3.37/Control/Monad/Logger.hs
--- old/monad-logger-0.3.36/Control/Monad/Logger.hs     2020-11-24 
18:16:13.000000000 +0100
+++ new/monad-logger-0.3.37/Control/Monad/Logger.hs     2022-08-24 
09:34:46.000000000 +0200
@@ -434,6 +434,12 @@
     return (UnliftIO (unliftIO u . runNoLoggingT))
 #endif
 
+instance (Applicative m, Semigroup a) => Semigroup (NoLoggingT m a) where
+  (<>) = liftA2 (<>)
+
+instance (Applicative m, Monoid a) => Monoid (NoLoggingT m a) where
+  mempty = pure mempty
+
 -- | @since 0.3.32
 type LogLine = (Loc, LogSource, LogLevel, LogStr)
 
@@ -554,6 +560,12 @@
           return (y, appendDList w1 w2))
 #endif
 
+instance (Applicative m, Semigroup a) => Semigroup (WriterLoggingT m a) where
+  (<>) = liftA2 (<>)
+
+instance (Applicative m, Monoid a) => Monoid (WriterLoggingT m a) where
+  mempty = pure mempty
+
 -- | Monad transformer that adds a new logging function.
 --
 -- @since 0.2.2
@@ -665,6 +677,12 @@
     return (UnliftIO (unliftIO u . flip runLoggingT f))
 #endif
 
+instance (Applicative m, Semigroup a) => Semigroup (LoggingT m a) where
+  (<>) = liftA2 (<>)
+
+instance (Applicative m, Monoid a) => Monoid (LoggingT m a) where
+  mempty = pure mempty
+
 -- | A default implementation of 'monadLoggerLog' that accepts a file
 -- handle as the first argument.
 --
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monad-logger-0.3.36/monad-logger.cabal 
new/monad-logger-0.3.37/monad-logger.cabal
--- old/monad-logger-0.3.36/monad-logger.cabal  2020-11-24 18:16:19.000000000 
+0100
+++ new/monad-logger-0.3.37/monad-logger.cabal  2022-08-24 10:24:20.000000000 
+0200
@@ -1,13 +1,11 @@
 cabal-version: 1.12
 
--- This file has been generated from package.yaml by hpack version 0.33.0.
+-- This file has been generated from package.yaml by hpack version 0.34.4.
 --
 -- see: https://github.com/sol/hpack
---
--- hash: ae72d70b6bc9b10cacdb9b7f8ea8d66a762c3eab2f3799c2749514255181ebfe
 
 name:           monad-logger
-version:        0.3.36
+version:        0.3.37
 synopsis:       A class of monads which can log messages.
 description:    See README and Haddocks at 
<https://www.stackage.org/package/monad-logger>
 category:       System
@@ -42,7 +40,7 @@
     , conduit >=1.0 && <1.4
     , conduit-extra >=1.1 && <1.4
     , exceptions >=0.6 && <0.11
-    , fast-logger >=2.1 && <3.1
+    , fast-logger >=2.1 && <3.2
     , lifted-base
     , monad-control >=1.0
     , monad-loops

Reply via email to