[Haskell-cafe] Doing without IORef
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
Always remember that you are unique. Just like everyone else.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe