<div dir="auto">The expectation that length = getSum . foldMap (Sum . const 1)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 23, 2020, 10:21 AM Manuel Schneckenreither <<a href="mailto:manuel.schnecki@gmail.com">manuel.schnecki@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">    >>>>> "HT" == Henning Thielemann <<a href="mailto:lemming@henning-thielemann.de" target="_blank" rel="noreferrer">lemming@henning-thielemann.de</a>> writes:<br>
<br>
    HT> "length (a,b) == 1" is only a consequence of defining instance<br>
    HT> Foldable for pairs. It was not the argument to implement that<br>
    HT> instance, at all.<br>
<br>
What was the argument to use 1, not 2 for instance? <br>
_______________________________________________<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 noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div>