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
[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
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