[Haskell-cafe] random-fu confusion

Alex Rozenshteyn rpglover64 at gmail.com
Thu Sep 2 10:01:32 EDT 2010


I seem to be having confusion at the runRVar level of random-fu.

I can't figure out how to use the Data.Random.Source.PureMT module to get a
meaningful random source (I can't get my code to type-check).

I wrote a [trivial] flipCoin function
> flipCoin = uniform False True
and am trying to fill in the final place of runRVar
> :t runRVar (replicateM 20 flipCoin)
runRVar (replicateM 20 flipCoin)
  :: (RandomSource m s) => s -> m [Bool]


-- 
          Alex R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100902/cc5202d4/attachment.html


More information about the Haskell-Cafe mailing list