[Haskell-cafe] Doing without IORef

Jinwoo Lee jinwoo68 at gmail.com
Thu Apr 3 21:07:24 EDT 2008

But I still have to use IORef this way.

On Thu, Apr 3, 2008 at 7:08 PM, Alfonso Acosta <alfonso.acosta at gmail.com>

> > type MyState a = StateT FilePath IO a
> > Is there any way in which I can do without IORef in tabHandler and
> > commandLoop (written in red and bold, if you can see)?
> How about keeping the IORef but storing it inside the state?
> type MySate a = StateT (IORef FilePath) IO a

Jinwoo Lee
Always remember that you are unique. Just like everyone else.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080404/7484dfc7/attachment.htm

More information about the Haskell-Cafe mailing list