Proposal: Add a strict version of foldlWithKey to Data.Map

Ian Lynagh igloo at earth.li
Sun Aug 22 18:33:27 EDT 2010


On Mon, Aug 23, 2010 at 12:23:52AM +0200, Johan Tibell wrote:
> On Sun, Aug 22, 2010 at 2:47 PM, Ian Lynagh <igloo at earth.li> wrote:
> 
> > Well, if there's a GHC code performance bug then we should fix it, but I
> > don't think we should use a workaround in the libraries that gives a
> > function the wrong strictness.
> >
> 
> The generated core has the strictness we want

In your example, yes, but if f ignores its first argument then it
doesn't.


Thanks
Ian



More information about the Libraries mailing list