Re: [GHC] #4314: Move 'split' from the 'RandomGen' class to a new 'SplittableGen' class

2011-06-28 Thread GHC
#4314: Move 'split' from the 'RandomGen' class to a new 'SplittableGen' class
---+
  Reporter:  TomMD |  Owner:  
  Type:  proposal  | Status:  closed  
  Priority:  normal|  Milestone:  Not GHC 
 Component:  libraries/random  |Version:  6.12.3  
Resolution:  fixed |   Keywords:  
  Testcase:|  Blockedby:  
Difficulty:| Os:  Unknown/Multiple
  Blocking:|   Architecture:  Unknown/Multiple
   Failure:  None/Unknown  |  
---+
Changes (by rrnewton):

 * cc: rrnewton@… (added)


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4314: Move 'split' from the 'RandomGen' class to a new 'SplittableGen' class

2010-10-13 Thread GHC
#4314: Move 'split' from the 'RandomGen' class to a new 'SplittableGen' class
---+
  Reporter:  TomMD |  Owner:  
  Type:  proposal  | Status:  closed  
  Priority:  normal|  Milestone:  Not GHC 
 Component:  libraries/random  |Version:  6.12.3  
Resolution:  fixed |   Keywords:  
  Testcase:|  Blockedby:  
Difficulty:| Os:  Unknown/Multiple
  Blocking:|   Architecture:  Unknown/Multiple
   Failure:  None/Unknown  |  
---+
Changes (by igloo):

  * status:  patch => closed
  * resolution:  => fixed


Comment:

 Applied, thanks!

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4314: Move 'split' from the 'RandomGen' class to a new 'SplittableGen' class

2010-10-09 Thread GHC
#4314: Move 'split' from the 'RandomGen' class to a new 'SplittableGen' class
-+--
Reporter:  TomMD |Owner:  
Type:  proposal  |   Status:  patch   
Priority:  normal|Milestone:  Not GHC 
   Component:  libraries/random  |  Version:  6.12.3  
Keywords:| Testcase:  
   Blockedby:|   Difficulty:  
  Os:  Unknown/Multiple  | Blocking:  
Architecture:  Unknown/Multiple  |  Failure:  None/Unknown
-+--
Changes (by TomMD):

  * status:  new => patch


Comment:

 The new attachment (SplittableGenClass.patch - sorry, should have replaced
 the old) seems to be the consensus on the ML.  It implements:

 {{{
 class RandomGen g where
 next :: g -> (Int, g)
 genRange :: g -> (Int,Int)
 genRange _ = (minBound, maxBound)

 class (RandomGen g) => SplittableGen g where
 split:: g -> (g, g)
 }}}

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4314: Move 'split' from the 'RandomGen' class to a new 'SplittableGen' class

2010-09-30 Thread GHC
#4314: Move 'split' from the 'RandomGen' class to a new 'SplittableGen' class
-+--
Reporter:  TomMD |Owner:  
Type:  proposal  |   Status:  new 
Priority:  normal|Milestone:  Not GHC 
   Component:  libraries/random  |  Version:  6.12.3  
Keywords:| Testcase:  
   Blockedby:|   Difficulty:  
  Os:  Unknown/Multiple  | Blocking:  
Architecture:  Unknown/Multiple  |  Failure:  None/Unknown
-+--
Changes (by igloo):

  * milestone:  => Not GHC


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #4314: Move 'split' from the 'RandomGen' class to a new 'SplittableGen' class

2010-09-14 Thread GHC
#4314: Move 'split' from the 'RandomGen' class to a new 'SplittableGen' class
-+--
Reporter:  TomMD |   Owner:  
Type:  proposal  |  Status:  new 
Priority:  normal|   Component:  libraries/random
 Version:  6.12.3|Keywords:  
Testcase:|   Blockedby:  
  Os:  Unknown/Multiple  |Blocking:  
Architecture:  Unknown/Multiple  | Failure:  None/Unknown
-+--
 The proposal is to:

 1) Create the 'SplittableGen' class in System.Random:
 class SplittableGen g where split :: g -> (g,g)

 2) (Re)move  the 'split' routine from RandomGen.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs