[Haskell-cafe] Is there a library that has a strict version of `sum`?

Vanessa McHale vanessa.mchale at iohk.io
Tue Aug 14 14:24:49 UTC 2018


If you'd rather import a custom prelude instead of writing `sum = foldl'
(+) 0` you might want to think about how dependencies affect maintaining
a package.

What's the actual problem you're trying to solve?


On 08/14/2018 04:09 AM, Damian Nadales wrote:
> I thought the answer would be easy to find on the internet, but I
> cannot find any package that features a strict version of `sum`.
>
> Do you know if such a function is defined anywhere? (like a custom
> prelude for instance)
>
> I know it is trivial to define, but I would prefer not to repeat
> myself (and somebody else).
>
> Thanks!
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180814/52c02886/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180814/52c02886/attachment.sig>


More information about the Haskell-Cafe mailing list