Hello community,
here is the log from the commit of package ghc-monad-logger for
openSUSE:Factory checked in at 2020-08-28 21:35:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-monad-logger (Old)
and /work/SRC/openSUSE:Factory/.ghc-monad-logger.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-monad-logger"
Fri Aug 28 21:35:05 2020 rev:23 rq:829353 version:0.3.35
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-monad-logger/ghc-monad-logger.changes
2020-07-09 13:19:50.953360948 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-monad-logger.new.3399/ghc-monad-logger.changes
2020-08-28 21:35:06.788716271 +0200
@@ -1,0 +2,14 @@
+Tue Aug 18 10:45:29 UTC 2020 - Peter Simons <[email protected]>
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+-------------------------------------------------------------------
+Thu Aug 13 02:00:25 UTC 2020 - [email protected]
+
+- Update monad-logger to version 0.3.35.
+ ## 0.3.35
+
+ * Add Hackage status badge
+ * Document `Loc` [#26](https://github.com/snoyberg/monad-logger/pull/26)
+
+-------------------------------------------------------------------
Old:
----
monad-logger-0.3.34.tar.gz
New:
----
monad-logger-0.3.35.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-monad-logger.spec ++++++
--- /var/tmp/diff_new_pack.tfaRIn/_old 2020-08-28 21:35:07.504716610 +0200
+++ /var/tmp/diff_new_pack.tfaRIn/_new 2020-08-28 21:35:07.508716612 +0200
@@ -18,7 +18,7 @@
%global pkg_name monad-logger
Name: ghc-%{pkg_name}
-Version: 0.3.34
+Version: 0.3.35
Release: 0
Summary: A class of monads which can log messages
License: MIT
@@ -59,7 +59,7 @@
This package provides the Haskell %{pkg_name} library development files.
%prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
%build
%ghc_lib_build
++++++ monad-logger-0.3.34.tar.gz -> monad-logger-0.3.35.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/monad-logger-0.3.34/ChangeLog.md
new/monad-logger-0.3.35/ChangeLog.md
--- old/monad-logger-0.3.34/ChangeLog.md 2020-07-07 07:20:03.000000000
+0200
+++ new/monad-logger-0.3.35/ChangeLog.md 2020-08-12 08:34:19.000000000
+0200
@@ -1,5 +1,10 @@
# ChangeLog for monad-logger
+## 0.3.35
+
+* Add Hackage status badge
+* Document `Loc` [#26](https://github.com/snoyberg/monad-logger/pull/26)
+
## 0.3.34
* Fix build for lts-9 resolver
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/monad-logger-0.3.34/Control/Monad/Logger.hs
new/monad-logger-0.3.35/Control/Monad/Logger.hs
--- old/monad-logger-0.3.34/Control/Monad/Logger.hs 2020-07-07
07:20:03.000000000 +0200
+++ new/monad-logger-0.3.35/Control/Monad/Logger.hs 2020-08-12
08:30:54.000000000 +0200
@@ -100,6 +100,7 @@
#endif
-- * utilities for defining your own loggers
, defaultLogStr
+ -- $locDocs
, Loc (..)
, defaultLoc
) where
@@ -178,6 +179,22 @@
type LogSource = Text
+-- $locDocs
+--
+-- === Loc
+--
+-- When @monad-logger@ is compiled with the @template_haskell@ flag set to
true (the default), the 'Loc' below is a re-export from the @template-haskell@
package.
+-- When the flag is false, the 'Loc' below is a copy of that data structure
defined in @monad-logger@ itself.
+--
+-- If you are making a library that:
+--
+-- * Uses @monad-logger@
+-- * Uses 'Loc' in a type signature
+-- * But doesn't need to depend on @template-haskell@ for other reasons
+--
+-- You can import 'Loc' directly from this package, instead of adding an
dependency on @template-haskell@ and importing from there.
+-- This allows users to compile your package in environments that don't
support @template-haskell@.
+
#if WITH_TEMPLATE_HASKELL
instance Lift LogLevel where
@@ -872,19 +889,19 @@
logOtherN :: MonadLogger m => LogLevel -> Text -> m ()
logOtherN = logWithoutLoc ""
-logDebugNS :: MonadLogger m => Text -> Text -> m ()
+logDebugNS :: MonadLogger m => LogSource -> Text -> m ()
logDebugNS src = logWithoutLoc src LevelDebug
-logInfoNS :: MonadLogger m => Text -> Text -> m ()
+logInfoNS :: MonadLogger m => LogSource -> Text -> m ()
logInfoNS src = logWithoutLoc src LevelInfo
-logWarnNS :: MonadLogger m => Text -> Text -> m ()
+logWarnNS :: MonadLogger m => LogSource -> Text -> m ()
logWarnNS src = logWithoutLoc src LevelWarn
-logErrorNS :: MonadLogger m => Text -> Text -> m ()
+logErrorNS :: MonadLogger m => LogSource -> Text -> m ()
logErrorNS src = logWithoutLoc src LevelError
-logOtherNS :: MonadLogger m => Text -> LogLevel -> Text -> m ()
+logOtherNS :: MonadLogger m => LogSource -> LogLevel -> Text -> m ()
logOtherNS = logWithoutLoc
#if WITH_CALLSTACK
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/monad-logger-0.3.34/README.md
new/monad-logger-0.3.35/README.md
--- old/monad-logger-0.3.34/README.md 2020-07-01 16:11:00.000000000 +0200
+++ new/monad-logger-0.3.35/README.md 2020-08-12 08:30:54.000000000 +0200
@@ -2,6 +2,7 @@
[](https://travis-ci.org/snoyberg/monad-logger)
[](https://ci.appveyor.com/project/snoyberg/monad-logger/branch/master)
+[](https://hackage.haskell.org/package/monad-logger)
A monad transformer approach for logging.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/monad-logger-0.3.34/monad-logger.cabal
new/monad-logger-0.3.35/monad-logger.cabal
--- old/monad-logger-0.3.34/monad-logger.cabal 2020-07-07 07:20:28.000000000
+0200
+++ new/monad-logger-0.3.35/monad-logger.cabal 2020-08-12 08:34:45.000000000
+0200
@@ -4,10 +4,10 @@
--
-- see: https://github.com/sol/hpack
--
--- hash: 4c723e63ce03c6e1717d2dbde2229b03d803ec328b909536160c9d7e8e5c9583
+-- hash: c1da2cf4e6349e1b417f173c13880cb9929fece82971108834a71f9eb72a6d69
name: monad-logger
-version: 0.3.34
+version: 0.3.35
synopsis: A class of monads which can log messages.
description: See README and Haddocks at
<https://www.stackage.org/package/monad-logger>
category: System