Hello community,

here is the log from the commit of package ghc-exceptions for openSUSE:Factory 
checked in at 2016-01-20 09:54:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-exceptions (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-exceptions.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-exceptions"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-exceptions/ghc-exceptions.changes    
2015-05-21 08:10:48.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-exceptions.new/ghc-exceptions.changes       
2016-01-20 09:55:02.000000000 +0100
@@ -1,0 +2,7 @@
+Mon Jan 18 10:29:23 UTC 2016 - [email protected]
+
+- update to  0.8.2.1
+* Support for throwing in the template-haskell Q monad
+* Support for transformers 0.5
+
+-------------------------------------------------------------------

Old:
----
  exceptions-0.8.0.2.tar.gz

New:
----
  exceptions-0.8.2.1.tar.gz

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

Other differences:
------------------
++++++ ghc-exceptions.spec ++++++
--- /var/tmp/diff_new_pack.N1Mr3i/_old  2016-01-20 09:55:04.000000000 +0100
+++ /var/tmp/diff_new_pack.N1Mr3i/_new  2016-01-20 09:55:04.000000000 +0100
@@ -18,8 +18,8 @@
 
 %global pkg_name exceptions
 
-Name:           ghc-%{pkg_name}
-Version:        0.8.0.2
+Name:           ghc-exceptions
+Version:        0.8.2.1
 Release:        0
 Summary:        Exceptions library
 License:        BSD-3-Clause
@@ -33,6 +33,7 @@
 # Begin cabal-rpm deps:
 BuildRequires:  ghc-mtl-devel
 BuildRequires:  ghc-stm-devel
+BuildRequires:  ghc-template-haskell-devel
 BuildRequires:  ghc-transformers-compat-devel
 BuildRequires:  ghc-transformers-devel
 # End cabal-rpm deps

++++++ exceptions-0.8.0.2.tar.gz -> exceptions-0.8.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/exceptions-0.8.0.2/CHANGELOG.markdown 
new/exceptions-0.8.2.1/CHANGELOG.markdown
--- old/exceptions-0.8.0.2/CHANGELOG.markdown   2015-03-14 17:50:47.000000000 
+0100
+++ new/exceptions-0.8.2.1/CHANGELOG.markdown   2016-01-16 22:18:37.000000000 
+0100
@@ -1,3 +1,8 @@
+0.8.1
+-----
+* Support for throwing in the `template-haskell` `Q` monad
+* Support for `transformers` 0.5
+
 0.8.0.1
 -------
 * Resolved warnings on GHC 7.10 and with transformers 0.4.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/exceptions-0.8.0.2/README.markdown 
new/exceptions-0.8.2.1/README.markdown
--- old/exceptions-0.8.0.2/README.markdown      2015-03-14 17:50:47.000000000 
+0100
+++ new/exceptions-0.8.2.1/README.markdown      2016-01-16 22:18:37.000000000 
+0100
@@ -1,7 +1,7 @@
 exceptions
 ==========
 
-[![Build 
Status](https://secure.travis-ci.org/ekmett/exceptions.png?branch=master)](http://travis-ci.org/ekmett/exceptions)
+[![Hackage](https://img.shields.io/hackage/v/exceptions.svg)](https://hackage.haskell.org/package/exceptions)
 [![Build 
Status](https://secure.travis-ci.org/ekmett/exceptions.png?branch=master)](http://travis-ci.org/ekmett/exceptions)
 
 This package provides (optionally pure) extensible exceptions that are 
compatible with the monad transformer library.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/exceptions-0.8.0.2/exceptions.cabal 
new/exceptions-0.8.2.1/exceptions.cabal
--- old/exceptions-0.8.0.2/exceptions.cabal     2015-03-14 17:50:47.000000000 
+0100
+++ new/exceptions-0.8.2.1/exceptions.cabal     2016-01-16 22:18:37.000000000 
+0100
@@ -1,6 +1,6 @@
 name:          exceptions
 category:      Control, Exceptions, Monad
-version:       0.8.0.2
+version:       0.8.2.1
 cabal-version: >= 1.8
 license:       BSD3
 license-file:  LICENSE
@@ -35,8 +35,9 @@
   build-depends:
     base                       >= 4.3      && < 5,
     stm                        >= 2.2      && < 3,
-    transformers               >= 0.2      && < 0.5,
-    transformers-compat        >= 0.3      && < 0.5,
+    template-haskell           >= 2.2      && < 2.12,
+    transformers               >= 0.2      && < 0.6,
+    transformers-compat        >= 0.3      && < 0.6,
     mtl                        >= 2.0      && < 2.3
 
   exposed-modules:
@@ -55,9 +56,10 @@
   build-depends:
     base,
     stm,
+    template-haskell,
     transformers,
     transformers-compat,
     mtl,
     test-framework             >= 0.8      && < 0.9,
     test-framework-quickcheck2 >= 0.3      && < 0.4,
-    QuickCheck                 >= 2.5      && < 2.8
+    QuickCheck                 >= 2.5      && < 2.9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/exceptions-0.8.0.2/src/Control/Monad/Catch/Pure.hs 
new/exceptions-0.8.2.1/src/Control/Monad/Catch/Pure.hs
--- old/exceptions-0.8.0.2/src/Control/Monad/Catch/Pure.hs      2015-03-14 
17:50:47.000000000 +0100
+++ new/exceptions-0.8.2.1/src/Control/Monad/Catch/Pure.hs      2016-01-16 
22:18:37.000000000 +0100
@@ -105,7 +105,7 @@
   (<*>) = ap
 
 instance Monad m => Monad (CatchT m) where
-  return a = CatchT (return (Right a))
+  return = pure
   CatchT m >>= k = CatchT $ m >>= \ea -> case ea of
     Left e -> return (Left e)
     Right a -> runCatchT (k a)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/exceptions-0.8.0.2/src/Control/Monad/Catch.hs 
new/exceptions-0.8.2.1/src/Control/Monad/Catch.hs
--- old/exceptions-0.8.0.2/src/Control/Monad/Catch.hs   2015-03-14 
17:50:47.000000000 +0100
+++ new/exceptions-0.8.2.1/src/Control/Monad/Catch.hs   2016-01-16 
22:18:37.000000000 +0100
@@ -39,7 +39,7 @@
 -- This is very similar to 'ErrorT' and 'MonadError', but based on features of
 -- "Control.Exception". In particular, it handles the complex case of
 -- asynchronous exceptions by including 'mask' in the typeclass. Note that the
--- extensible extensions feature relies on the RankNTypes language extension.
+-- extensible exceptions feature relies on the RankNTypes language extension.
 --------------------------------------------------------------------
 
 module Control.Monad.Catch (
@@ -93,6 +93,8 @@
 import Control.Monad.Trans.Identity
 import Control.Monad.Reader as Reader
 
+import Language.Haskell.TH.Syntax (Q)
+
 #if __GLASGOW_HASKELL__ < 706
 import Prelude hiding (catch, foldr)
 import Data.Foldable
@@ -183,6 +185,8 @@
   throwM _ = Nothing
 instance e ~ SomeException => MonadThrow (Either e) where
   throwM = Left . toException
+instance MonadThrow Q where
+  throwM = fail . show
 
 instance MonadThrow IO where
   throwM = ControlException.throwIO


Reply via email to