[Haskell-cafe] Re: Guess what ... Tutorial uploaded! :)

Dmitry Astapov dastapov at gmail.com
Tue Jan 24 15:28:51 EST 2006


Evening, Ben. 

Ben Rudiak-Gould <Benjamin.Rudiak-Gould at cl.cam.ac.uk> 00:46 24/1/2006 wrote:

 BR> Dmitry Astapov wrote:
>> http://www.haskell.org/hawiki/HitchhickersGuideToTheHaskell

 BR> I like the approach too, but the section on IO actions, which I'm
 BR> reading now, is not correct. It's not true that "a <- someAction"
 BR> has the effect of associating a with someAction, with the actual
 BR> work deferred until later.

Ahem.. I got a "little" carried away on the topic of getContents,
apparently :(


 BR> All of the IO associated with someAction happens at the program
 BR> point where "a <- someAction" appears, whether or not it's needed
 BR> later. getContents is a rare exception to this rule.

But of course. Now I'll have to think how to back out of the mess I
created :)

-- 
Dmitry Astapov //ADEpt
GPG KeyID/fprint: F5D7639D/CA36 E6C4 815D 434D 0498  2B08 7867 4860 F5D7 639D



More information about the Haskell-Cafe mailing list