5 Sep
2009
5 Sep
'09
5:23 a.m.
On Fri, Sep 04, 2009 at 04:52:12PM -0700, Taral wrote:
On Fri, Sep 4, 2009 at 4:42 PM, John Meacham
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/