[Haskell-cafe] Doing without IORef

Jinwoo Lee jinwoo68 at gmail.com
Thu Apr 3 21:53:47 EDT 2008


OK. I understand it now.
I think the article Claude suggested is worth a read because it shows how to
hide using IORef in simple APIs.

Thanks,
jinwoo


On Fri, Apr 4, 2008 at 10:17 AM, Brandon S. Allbery KF8NH <
allbery at ece.cmu.edu> wrote:

>
> On Apr 3, 2008, at 21:07 , Jinwoo Lee wrote:
>
> > But I still have to use IORef this way.
> >
>
> You can't escape the IORef unless you can convince the library to thread
> your state everywhere that it needs to be modified *and* where it needs to
> be read, without copying it.
>
>
> --
> brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
> system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
> electrical and computer engineering, carnegie mellon university    KF8NH
>
>
>


-- 
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/c1c13fad/attachment.htm


More information about the Haskell-Cafe mailing list