[jhc] Success with strictness

John Meacham john at repetae.net
Fri Sep 4 19:53:56 EDT 2009


On Fri, Sep 04, 2009 at 04:52:12PM -0700, Taral wrote:
> On Fri, Sep 4, 2009 at 4:42 PM, John Meacham<john at repetae.net> wrote:
> > Ah, excellent! I was wondering whether lazy writer monads were hurting
> > me. A lot of the written data is 'mempty' so if those are lazily being
> > stored up, I could see that leaking memory. I use Writer monads all over
> > the place, I wonder if the strict versions will help in other places.
> 
> It depends. If you are using 'tell (f large_thing)' where (f
> large_thing) === mempty, then yes.

I was thinking more of the 'mappend's introduced by every (>>) and (>>=).

        John

-- 
John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/


More information about the jhc mailing list