Repository : ssh://darcs.haskell.org//srv/darcs/packages/random

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/40bbfd2867d70b85f5c607382c9f3ffa25761031

>---------------------------------------------------------------

commit 40bbfd2867d70b85f5c607382c9f3ffa25761031
Author: Ryan Newton <[email protected]>
Date:   Thu Aug 25 11:14:45 2011 -0400

    Bumped version for recent bugfixes but disabled SplittableGen for now.

>---------------------------------------------------------------

 System/Random.hs |    9 ++++++++-
 random.cabal     |    7 ++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/System/Random.hs b/System/Random.hs
index a115c2e..052f568 100644
--- a/System/Random.hs
+++ b/System/Random.hs
@@ -46,9 +46,12 @@ module System.Random
 
        -- * Random number generators
 
+#ifdef ENABLE_SPLITTABLEGEN
          RandomGen(next, genRange)
        , SplittableGen(split)
-
+#else
+         RandomGen(next, genRange, split)
+#endif
        -- ** Standard random number generators
        , StdGen
        , mkStdGen
@@ -142,9 +145,11 @@ class RandomGen g where
    -- default method
    genRange _ = (minBound, maxBound)
 
+#ifdef ENABLE_SPLITTABLEGEN
 -- | The class 'SplittableGen' proivides a way to specify a random number
 -- generator that can be split into two new generators.
 class SplittableGen g where
+#endif
    -- |The 'split' operation allows one to obtain two distinct random number
    -- generators. This is very useful in functional programs (for example, when
    -- passing a random number generator down to recursive calls), but very
@@ -186,7 +191,9 @@ instance RandomGen StdGen where
   next  = stdNext
   genRange _ = stdRange
 
+#ifdef ENABLE_SPLITTABLEGEN
 instance SplittableGen StdGen where
+#endif
   split = stdSplit
 
 instance Show StdGen where
diff --git a/random.cabal b/random.cabal
index 19b6b56..7e44145 100644
--- a/random.cabal
+++ b/random.cabal
@@ -1,5 +1,8 @@
 name:          random
-version:       1.0.0.4
+version:       1.0.1.0
+
+-- 1.0.1.0 -- bump for bug fixes, but no SplittableGen yet
+
 license:       BSD3
 license-file:  LICENSE
 maintainer:    [email protected]
@@ -11,6 +14,8 @@ description:
 build-type: Simple
 Cabal-Version: >= 1.6
 
+
+
 Library
     exposed-modules:
         System.Random



_______________________________________________
Cvs-libraries mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-libraries

Reply via email to