Hello community,

here is the log from the commit of package ghc-monadcryptorandom for 
openSUSE:Factory checked in at 2017-02-21 13:45:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-monadcryptorandom (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-monadcryptorandom.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-monadcryptorandom"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-monadcryptorandom/ghc-monadcryptorandom.changes  
    2016-10-22 13:12:47.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-monadcryptorandom.new/ghc-monadcryptorandom.changes
 2017-02-21 13:45:43.051495669 +0100
@@ -1,0 +2,5 @@
+Sun Feb  5 19:32:03 UTC 2017 - [email protected]
+
+- Update to version 0.7.1 with cabal2obs.
+
+-------------------------------------------------------------------

Old:
----
  monadcryptorandom-0.7.0.tar.gz

New:
----
  monadcryptorandom-0.7.1.tar.gz

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

Other differences:
------------------
++++++ ghc-monadcryptorandom.spec ++++++
--- /var/tmp/diff_new_pack.pWtmvr/_old  2017-02-21 13:45:43.611416677 +0100
+++ /var/tmp/diff_new_pack.pWtmvr/_new  2017-02-21 13:45:43.611416677 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-monadcryptorandom
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,23 +18,23 @@
 
 %global pkg_name monadcryptorandom
 Name:           ghc-%{pkg_name}
-Version:        0.7.0
+Version:        0.7.1
 Release:        0
 Summary:        A monad for using CryptoRandomGen
 License:        BSD-3-Clause
-Group:          System/Libraries
+Group:          Development/Languages/Other
 Url:            https://hackage.haskell.org/package/%{pkg_name}
 Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-crypto-api-devel
+BuildRequires:  ghc-exceptions-devel
 BuildRequires:  ghc-mtl-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-tagged-devel
+BuildRequires:  ghc-transformers-compat-devel
 BuildRequires:  ghc-transformers-devel
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-# End cabal-rpm deps
 
 %description
 A monad for using CryptoRandomGen.
@@ -54,15 +54,12 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %post devel
 %ghc_pkg_recache
 

++++++ monadcryptorandom-0.7.0.tar.gz -> monadcryptorandom-0.7.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/monadcryptorandom-0.7.0/Control/Monad/CryptoRandom.hs 
new/monadcryptorandom-0.7.1/Control/Monad/CryptoRandom.hs
--- old/monadcryptorandom-0.7.0/Control/Monad/CryptoRandom.hs   2015-10-29 
22:45:36.000000000 +0100
+++ new/monadcryptorandom-0.7.1/Control/Monad/CryptoRandom.hs   2017-02-02 
16:41:10.000000000 +0100
@@ -31,8 +31,10 @@
 import Control.Applicative
 import Control.Arrow (right, left, first)
 import Control.Monad (liftM)
+import qualified Control.Monad.Catch as C (MonadThrow(..), MonadCatch(..))
 import Control.Monad.Cont
-import Control.Monad.Except
+import Control.Monad.Trans.Except
+import Control.Monad.Error.Class
 import Control.Monad.IO.Class
 import Control.Monad.Identity
 import Control.Monad.Reader
@@ -331,21 +333,34 @@
   callCC f = CRandT $ callCC $ \amb -> unCRandT $ f (CRandT . amb)
   {-# INLINE callCC #-}
 
+-- | Throws exceptions into the base monad.
+--
+-- @since 0.7.1
+instance C.MonadThrow m => C.MonadThrow (CRandT g e m) where
+    throwM = CRandT . C.throwM
+
+-- | Catches exceptions from the base monad.
+--
+-- @since 0.7.1
+instance C.MonadCatch m => C.MonadCatch (CRandT g e m) where
+  catch (CRandT m) f = CRandT $ C.catch m (unCRandT . f)
+
 -- |Simple users of generators can use CRand for
 -- quick and easy generation of randoms.  See
 -- below for a simple use of 'newGenIO' (from "crypto-api"),
 -- 'getCRandom', 'getBytes', and 'runCRandom'.
 --
--- @getRandPair = do
+-- @
+-- getRandPair = do
 --   int <- getCRandom
 --   bytes <- getBytes 100
 --   return (int, bytes)
 --
---  func = do
+-- func = do
 --   g <- newGenIO
 --   case runCRand getRandPair g of
---       Right ((int,bytes), g') -> useRandomVals (int,bytes)
---       Left x -> handleGenError x
+--     Right ((int,bytes), g') -> useRandomVals (int,bytes)
+--     Left x -> handleGenError x
 -- @
 type CRand g e = CRandT g e Identity
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monadcryptorandom-0.7.0/monadcryptorandom.cabal 
new/monadcryptorandom-0.7.1/monadcryptorandom.cabal
--- old/monadcryptorandom-0.7.0/monadcryptorandom.cabal 2015-10-29 
22:45:36.000000000 +0100
+++ new/monadcryptorandom-0.7.1/monadcryptorandom.cabal 2017-02-02 
16:41:10.000000000 +0100
@@ -1,5 +1,5 @@
 name:           monadcryptorandom
-version:        0.7.0
+version:        0.7.1
 license:        BSD3
 license-file:   LICENSE
 copyright:      Thomas DuBuisson <[email protected]>
@@ -12,14 +12,24 @@
 stability:      stable
 build-type:     Simple
 cabal-version:  >= 1.6
-tested-with:    GHC == 6.12.1
+tested-with:    GHC == 6.12.1,
+                GHC == 7.0.4,
+                GHC == 7.2.2,
+                GHC == 7.4.2
+                GHC == 7.6.3,
+                GHC == 7.8.2,
+                GHC == 7.10.3
 Data-Files:
 extra-source-files:
 
 Library
   Build-Depends: base == 4.*,
                  bytestring >= 0.9 && < 0.11,
-                 mtl >= 2.2.1, crypto-api >= 0.2, transformers >= 0.2,
+                 crypto-api >= 0.2,
+                 exceptions >= 0.8 && <0.9,
+                 transformers >= 0.2,
+                 mtl >= 2.0 && < 2.3,
+                 transformers-compat >= 0.3,
                  tagged >= 0.2
   ghc-options:
   hs-source-dirs:


Reply via email to