Hello community,

here is the log from the commit of package ghc-MonadRandom for openSUSE:Factory 
checked in at 2016-01-21 23:43:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-MonadRandom (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-MonadRandom.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-MonadRandom"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-MonadRandom/ghc-MonadRandom.changes  
2015-11-23 07:30:29.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-MonadRandom.new/ghc-MonadRandom.changes     
2016-01-22 01:08:31.000000000 +0100
@@ -1,0 +2,7 @@
+Mon Jan 18 10:42:18 UTC 2016 - [email protected]
+
+- update to 0.4.2.1
+* Allow transformers-compat-0.5.
+* Add MonadPlus and Alternative instances for RandT.
+
+-------------------------------------------------------------------

Old:
----
  MonadRandom-0.4.1.tar.gz

New:
----
  MonadRandom-0.4.2.1.tar.gz

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

Other differences:
------------------
++++++ ghc-MonadRandom.spec ++++++
--- /var/tmp/diff_new_pack.Jjruc2/_old  2016-01-22 01:08:33.000000000 +0100
+++ /var/tmp/diff_new_pack.Jjruc2/_new  2016-01-22 01:08:33.000000000 +0100
@@ -19,7 +19,7 @@
 %global pkg_name MonadRandom
 
 Name:           ghc-MonadRandom
-Version:        0.4.1
+Version:        0.4.2.1
 Release:        0
 Summary:        Random-number generation monad
 License:        MIT

++++++ MonadRandom-0.4.1.tar.gz -> MonadRandom-0.4.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MonadRandom-0.4.1/CHANGES.markdown 
new/MonadRandom-0.4.2.1/CHANGES.markdown
--- old/MonadRandom-0.4.1/CHANGES.markdown      2015-11-21 05:13:15.000000000 
+0100
+++ new/MonadRandom-0.4.2.1/CHANGES.markdown    2016-01-17 00:40:44.000000000 
+0100
@@ -1,3 +1,13 @@
+0.4.2.1 (16 January 2016)
+-------------------------
+
+  - Allow `transformers-compat-0.5`.
+
+0.4.2 (16 January 2016)
+-----------------------
+
+  - Add `MonadPlus` and `Alternative` instances for `RandT`.
+
 0.4.1 (20 November 2015)
 ------------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MonadRandom-0.4.1/Control/Monad/Random.hs 
new/MonadRandom-0.4.2.1/Control/Monad/Random.hs
--- old/MonadRandom-0.4.1/Control/Monad/Random.hs       2015-11-21 
05:13:15.000000000 +0100
+++ new/MonadRandom-0.4.2.1/Control/Monad/Random.hs     2016-01-17 
00:40:44.000000000 +0100
@@ -72,12 +72,16 @@
 -- | A monad transformer which adds a random number generator to an
 -- existing monad.
 newtype RandT g m a = RandT (StateT g m a)
-    deriving (Functor, Monad, MonadTrans, MonadIO, MonadFix, MonadReader r, 
MonadWriter w)
+    deriving (Functor, Monad, MonadPlus, MonadTrans, MonadIO, MonadFix, 
MonadReader r, MonadWriter w)
 
-instance (Functor m,Monad m) => Applicative (RandT g m) where
+instance (Functor m, Monad m) => Applicative (RandT g m) where
   pure = return
   (<*>) = ap
 
+instance (Functor m, MonadPlus m) => Alternative (RandT g m) where
+  empty = mzero
+  (<|>) = mplus
+
 -- | Lift arbitrary action to RandT
 liftRandT :: (g -> m (a, g)) -- ^ action returning value and new generator 
state
              -> RandT g m a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MonadRandom-0.4.1/MonadRandom.cabal 
new/MonadRandom-0.4.2.1/MonadRandom.cabal
--- old/MonadRandom-0.4.1/MonadRandom.cabal     2015-11-21 05:13:15.000000000 
+0100
+++ new/MonadRandom-0.4.2.1/MonadRandom.cabal   2016-01-17 00:40:44.000000000 
+0100
@@ -1,5 +1,5 @@
 name:                MonadRandom
-version:             0.4.1
+version:             0.4.2.1
 synopsis:            Random-number generation monad.
 description:         Support for computations which consume random values.
 license:             OtherLicense
@@ -19,7 +19,7 @@
   exposed-modules:     Control.Monad.Random, Control.Monad.Random.Class
   build-depends:       base >= 2 && < 5,
                        transformers >= 0.3 && < 0.5,
-                       transformers-compat == 0.4.*,
+                       transformers-compat >= 0.4 && < 0.6,
                        mtl >= 2.1 && < 2.3,
                        random
   ghc-options:         -Wall


Reply via email to