patch applied (ghc-6.6/packages/base): Add missing method genRange for StdGen (fixes #794)

Ian Lynagh igloo at earth.li
Sun Sep 3 22:32:03 EDT 2006


Fri Jul  7 08:19:01 PDT 2006  simonpj at microsoft
  * Add missing method genRange for StdGen (fixes #794)
  
  	MERGE TO STABLE
  
  Trac #794 reports (correctly) that the implementation of StdGen
  only returns numbers in the range (0..something) rather than 
  (minBound, maxBound), which is what StdGen's genRange claims.
  
  This commit fixes the problem, by implementing genRange for StdGen
  (previously it just used the default method).
  
  

    M ./System/Random.hs +5


More information about the Cvs-libraries mailing list