Explicit function call

2003-03-12 Thread Pavel G. Zhbanov
Hello, How can I make an explicit function call in a do sequence? Ex: ... do let a = myFunc ... b = myFunc ... c = Something else return c ... As I understand myFunc will not be executed, but I need it... Please, help. -- Pavel Zhbanov

Re: Explicit function call

2003-03-12 Thread Jon Cast
[EMAIL PROTECTED] (Pavel G. Zhbanov) wrote: If it doesn't have a side effect, why do it anyway? The result 'c' does not depend on a. myFunc uses IORef and it's (IORef's) result I use afterwards in some other functions. OK: what is myFunc's type? If it ends in IO alpha, for some alpha, you

Re: Explicit function call

2003-03-12 Thread Glynn Clements
Pavel G. Zhbanov wrote: If it doesn't have a side effect, why do it anyway? The result 'c' does not depend on a. myFunc uses IORef and it's (IORef's) result I use afterwards in some other functions. OK: what is myFunc's type? If it ends in IO alpha, for some alpha, you