[Haskell-beginners] ghci and randomRs
Brandon Allbery
allbery.b at gmail.com
Tue Sep 16 02:05:52 UTC 2014
On Mon, Sep 15, 2014 at 10:01 PM, Jeff C. Britton <jcb at iteris.com> wrote:
> Prelude System.Random> take 10 $ (randomRs (1, 6) newStdGen)
I think you need to read http://www.vex.net/~trebla/haskell/IO.xhtml.
You're trying to operate directly on an IO "program" (newStdGen) as if it
were a value.
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140915/9c1e0cd1/attachment.html>
More information about the Beginners
mailing list