[Haskell-cafe] rand* why not of type State g a

Marc Weber marco-oweber at gmx.de
Sun Aug 13 16:28:54 EDT 2006


the rand* function are examples for a typical state usage,  arent' they?
Is there any reasoon why they are not defined 
  RandomGen g => State g a
rather than
  RandomGen g => (a,a) -> g -> (a,g)
?

Marc


More information about the Haskell-Cafe mailing list