Hello community,

here is the log from the commit of package ghc-monad-logger for 
openSUSE:Factory checked in at 2017-04-18 13:50:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-monad-logger (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-monad-logger.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-monad-logger"

Tue Apr 18 13:50:54 2017 rev:11 rq:489017 version:0.3.22

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-monad-logger/ghc-monad-logger.changes        
2017-04-11 09:42:57.227807348 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-monad-logger.new/ghc-monad-logger.changes   
2017-04-18 13:50:54.318164945 +0200
@@ -1,0 +2,5 @@
+Tue Apr  4 11:04:09 UTC 2017 - psim...@suse.com
+
+- Update to version 0.3.22 with cabal2obs.
+
+-------------------------------------------------------------------

Old:
----
  monad-logger-0.3.21.tar.gz

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

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

Other differences:
------------------
++++++ ghc-monad-logger.spec ++++++
--- /var/tmp/diff_new_pack.7gQXAZ/_old  2017-04-18 13:50:54.978071545 +0200
+++ /var/tmp/diff_new_pack.7gQXAZ/_new  2017-04-18 13:50:54.982070979 +0200
@@ -18,7 +18,7 @@
 
 %global pkg_name monad-logger
 Name:           ghc-%{pkg_name}
-Version:        0.3.21
+Version:        0.3.22
 Release:        0
 Summary:        A class of monads which can log messages
 License:        MIT

++++++ monad-logger-0.3.21.tar.gz -> monad-logger-0.3.22.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monad-logger-0.3.21/ChangeLog.md 
new/monad-logger-0.3.22/ChangeLog.md
--- old/monad-logger-0.3.21/ChangeLog.md        2017-03-16 18:06:16.000000000 
+0100
+++ new/monad-logger-0.3.22/ChangeLog.md        2017-03-27 10:49:43.000000000 
+0200
@@ -1,3 +1,6 @@
+## 0.3.22
+* Added `runFileLoggingT`.
+
 ## 0.3.21
 
 * Reimplemented Functor & Applicative for LoggingT & NoLoggingT 
[#125](https://github.com/kazu-yamamoto/logger/issues/125) 
[#126](https://github.com/kazu-yamamoto/logger/pull/126)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monad-logger-0.3.21/Control/Monad/Logger.hs 
new/monad-logger-0.3.22/Control/Monad/Logger.hs
--- old/monad-logger-0.3.21/Control/Monad/Logger.hs     2017-03-16 
18:04:57.000000000 +0100
+++ new/monad-logger-0.3.22/Control/Monad/Logger.hs     2017-03-27 
10:49:43.000000000 +0200
@@ -40,6 +40,7 @@
     , runStderrLoggingT
     , runStdoutLoggingT
     , runChanLoggingT
+    , runFileLoggingT
     , unChanLoggingT
     , withChannelLogger
     , filterLogger
@@ -101,7 +102,7 @@
 import Control.Concurrent.Chan (Chan(),writeChan,readChan)
 import Control.Concurrent.STM
 import Control.Concurrent.STM.TBChan
-import Control.Exception.Lifted (onException)
+import Control.Exception.Lifted (onException, bracket)
 import Control.Monad (liftM, ap, when, void, forever)
 import Control.Monad.Base (MonadBase (liftBase))
 import Control.Monad.Loops (untilM)
@@ -143,7 +144,7 @@
 
 import Data.Monoid (mappend, mempty)
 import System.Log.FastLogger
-import System.IO (Handle, stdout, stderr)
+import System.IO (Handle, IOMode(AppendMode), openFile, hClose, stdout, stderr)
 
 import Control.Monad.Cont.Class   ( MonadCont (..) )
 import Control.Monad.Error.Class  ( MonadError (..) )
@@ -650,6 +651,15 @@
 -}
 
 
+-- | Run a block using a @MonadLogger@ instance which appends to the specified 
file.
+--
+-- @since 0.3.22
+runFileLoggingT :: MonadBaseControl IO m => FilePath -> LoggingT m a -> m a
+runFileLoggingT fp log = bracket
+    (liftBase $ openFile fp AppendMode)
+    (liftBase . hClose)
+    $ \h -> (runLoggingT log) (defaultOutput h)
+
 -- | Run a block using a @MonadLogger@ instance which prints to stderr.
 --
 -- Since 0.2.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monad-logger-0.3.21/monad-logger.cabal 
new/monad-logger-0.3.22/monad-logger.cabal
--- old/monad-logger-0.3.21/monad-logger.cabal  2017-03-16 18:05:46.000000000 
+0100
+++ new/monad-logger-0.3.22/monad-logger.cabal  2017-03-27 10:49:43.000000000 
+0200
@@ -1,5 +1,5 @@
 name:                monad-logger
-version:             0.3.21
+version:             0.3.22
 synopsis:            A class of monads which can log messages.
 description:         Hackage documentation generation is not reliable. For up 
to date documentation, please see: 
<http://www.stackage.org/package/monad-logger>.
 homepage:            https://github.com/kazu-yamamoto/logger


Reply via email to