Hello Henning,

Monday, November 26, 2007, 9:48:29 PM, you wrote:

> I wonder whether it is a typical mistake of beginners
> to write 'return' within a do-block (that is, not at the end)

don't forget that `return` is also used to force evaluation:

do let n = a+b
   return $! n
   writeChan c (n,1)


-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to