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

Johan Tibell johan.tibell at gmail.com
Sun Aug 22 18:47:54 EDT 2010


On Mon, Aug 23, 2010 at 12:33 AM, Ian Lynagh <igloo at earth.li> wrote:

> 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.


That's a good point. Do you have an alternate definition in mind that would
work better?

-- Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/libraries/attachments/20100822/ed3a8840/attachment.html


More information about the Libraries mailing list