[jhc] Success with strictness
Taral
taralx at gmail.com
Fri Sep 4 19:52:12 EDT 2009
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.
--
Taral <taralx at gmail.com>
"Please let me know if there's any further trouble I can give you."
-- Unknown
More information about the jhc
mailing list