Control.Monad.Writer.Strict not as strict as expected

Edward Kmett ekmett at gmail.com
Fri Sep 16 02:53:51 CEST 2011


On Thu, Sep 15, 2011 at 7:50 PM, Matt Brown <matt at softmechanics.net> wrote:

> Thanks for the clarification.  Though the lazy version suits my
> present need well, I wonder if a variant strict in its monoid would be
> useful as well.  If nothing else, it might help highlight that the
> Strict version is not, something I didn't realize until reading the
> source.
>

FYI- If you need one, you can model a particularly strict writer by using
the state monad with the help of seq or ($!).

-Edward
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20110915/6ed3cbc2/attachment.htm>


More information about the Libraries mailing list