[Haskell-cafe] Re: Doing without IORef

Jinwoo Lee jinwoo68 at gmail.com
Thu Apr 3 21:14:22 EDT 2008


Thanks everyone!
Now I think using IORef is the most practical way to do this.
And Claude, I will look into the article that you mentioned.

jinwoo


On Fri, Apr 4, 2008 at 3:08 AM, Peter Hercek <phercek at gmail.com> wrote:

> Jinwoo Lee wrote:
>
> > Is there any way in which I can do without IORef in tabHandler and
> > commandLoop (written in red and bold, if you can see)?
> >
>
> You could just always redefine the key binding for \t with
>  a new closure which contains the updated "pwd" value (or
>  the whole state if you like it more that way). I suppose
>  readline supports key binding redefinition (???).
> But I do not think I like it more that IORef, I rather
>  use IORefs with imperative interfaces  :-)
>
> Peter.
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
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/56edf069/attachment-0001.htm


More information about the Haskell-Cafe mailing list