[Haskell-cafe] Convert IO Int to Int
lemming at henning-thielemann.de
Wed Jun 10 05:11:08 EDT 2009
On Tue, 9 Jun 2009, Bulat Ziganshin wrote:
> Hello jerzy,
> Tuesday, June 9, 2009, 8:23:04 PM, you wrote:
>> Please, tell him first about random streams, which he can handle without
>> IO. Or, about ergodic functions (hashing contraptions which transform ANY
>> parameter into something unrecognizable). When he says : "I know all that",
>> THEN hurt him badly with monads.
> i think that for someone coming from imperative programming teeling
> about IO monad is the easiest way. and then he will learn how to do it
> FP way
I came from imperative programming and never wanted to use randomIO,
because it forces you to IO and randomsIO is not lazy.
More information about the Haskell-Cafe