Explicit function call

Jon Cast jcast@ou.edu
Wed, 12 Mar 2003 07:52:52 -0600

pavel@joker.botik.ru (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
can say: do a <- myFunc ... etc.  If it doesn't, then you should
probably re-think its definition.

Jon Cast