<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>That isn't strict.<br>
    </p>
    <div class="moz-cite-prefix">On 8/14/2018 4:38 PM, Imants Cekusins
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAP1qinZXk1t8mGR+ps4X-HOTTkrPAf1zxbsGk2msnGZWNhT3KA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">> <span
style="font-size:small;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">`sum
          = foldl' (+) 0`</span>
        <div><br>
        </div>
        <div>here is another possibility with "sum" in it:</div>
        <div><br>
        </div>
        <div>
          <div>Prelude Data.Monoid> let f = getSum . mconcat . (Sum
            <$>)</div>
          <div>Prelude Data.Monoid> f [1,2,3,4]</div>
          <div>10</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On 14 August 2018 at 17:24, Vanessa
              McHale <span dir="ltr"><<a
                  href="mailto:vanessa.mchale@iohk.io" target="_blank"
                  moz-do-not-send="true">vanessa.mchale@iohk.io</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <div bgcolor="#FFFFFF">
                  <p>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.</p>
                  <p>What's the actual problem you're trying to solve?<br>
                  </p>
                  <span class="gmail-"> <br>
                    <div
                      class="gmail-m_-8014851818912312347moz-cite-prefix">On
                      08/14/2018 04:09 AM, Damian Nadales wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div>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`. <br>
                        </div>
                        <div><br>
                        </div>
                        <div>Do you know if such a function is defined
                          anywhere? (like a custom prelude for instance)</div>
                        <div><br>
                        </div>
                        <div>I know it is trivial to define, but I would
                          prefer not to repeat myself (and somebody
                          else).</div>
                        <div><br>
                        </div>
                        <div>Thanks!<br>
                        </div>
                      </div>
                      <br>
                      <fieldset
                        class="gmail-m_-8014851818912312347mimeAttachmentHeader"></fieldset>
                      <br>
                      <pre>______________________________<wbr>_________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
<a class="gmail-m_-8014851818912312347moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank" moz-do-not-send="true">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a>
Only members subscribed via the mailman list are allowed to post.</pre>
                    </blockquote>
                  </span></div>
                <br>
                ______________________________<wbr>_________________<br>
                Haskell-Cafe mailing list<br>
                To (un)subscribe, modify options or view archives go to:<br>
                <a
                  href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
                Only members subscribed via the mailman list are allowed
                to post.<br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a>
Only members subscribed via the mailman list are allowed to post.</pre>
    </blockquote>
  </body>
</html>