[Haskell-cafe] Re: Doing without IORef

Bryan O'Sullivan bos at serpentine.com
Sat Apr 5 10:49:19 EDT 2008

Jinwoo Lee wrote:

> To summarize, embed IORef inside ReaderT and use that IORef to
> read/change the file path info, both in IO monad and MyState monad. Is
> this right?

Yep.  In case you ever want to multithread your program, you might want
to use an MVar instead of an IORef.


More information about the Haskell-Cafe mailing list