<div dir="ltr"><div dir="ltr" class="gmail_msg">Joachim, thanks for the kind words but I'll be more careful not to waste people's time with bad bug reports like that.<div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I got confused; when I I google "haskell list length" I end up at <a href="https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-List.html" class="gmail_msg" target="_blank">https://hackage.haskell.org/package/base-4.9.0.0/docs/<b class="gmail_msg">Data-List</b>.html</a>. When I look at the source code for length by clicking on "Source" It takes me to the start of the file <a href="https://hackage.haskell.org/package/base-4.9.0.0/docs/src/Data.Foldable.html#length" class="gmail_msg" target="_blank">https://hackage.haskell.org/package/base-4.9.0.0/docs/src/<b class="gmail_msg">Data.Foldable</b>.html#length</a>. instead of the definition of length in <a href="https://hackage.haskell.org/package/base-4.9.0.0/docs/src/GHC.List.html#length" class="gmail_msg" target="_blank">https://hackage.haskell.org/package/base-4.9.0.0/docs/src/<b class="gmail_msg">GHC.List.</b>html#length</a>. </div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">To me, this seems like a bug in haddock. In <b class="gmail_msg">Data.List</b>.html when I click on the source code for <font face="monospace" class="gmail_msg">init</font> I go to <a href="https://hackage.haskell.org/package/base-4.9.0.0/docs/src/GHC.List.html#init" class="gmail_msg" target="_blank">https://hackage.haskell.org/package/base-4.9.0.0/docs/src/GHC.List.html#init</a>. This is the file I should go to for the source code for length also. Perhaps the problem is that the type of length in Data.List is <font face="monospace" class="gmail_msg">Foldable t => t a -> Int </font>while init is <font face="monospace" class="gmail_msg">[a] -> [a] ? </font>Should I file a haddock bug for the preceding?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">There seems to be two minor related problems with the Users Guide (8.0.1.20161117) in section 10.32.6,List fusion. First, it should mention length as a good consumer. Secondly, it says: "If you want to write your own good consumers or producers, look at the Prelude definitions of the above functions to see how to do so." However if you go to <a href="https://hackage.haskell.org/package/base-4.9.0.0/docs/Prelude.html" class="gmail_msg" target="_blank">https://hackage.haskell.org/package/base-4.9.0.0/docs/Prelude.html</a> and look at the source code for length you end up at <a href="https://hackage.haskell.org/package/base-4.9.0.0/docs/src/Data.Foldable.html#length" class="gmail_msg" target="_blank">https://hackage.haskell.org/package/base-4.9.0.0/docs/src/Data.Foldable.html#length</a> which is not a good consumer. I think the User's Guide should be changed to replace "Prelude" with "Data.List" in the quoted sentence. I'll file a doc bug on the User's Guide for these two issues. Also making a function implement list fusion is not always easy, e.g. the bug, length is not a good consumer, was open for six years before being fixed. Thus I will suggest in the bug that we delete "readily" and change "Prelude" to "Data.List" in "This list could readily be extended; if there are Prelude functions that you use a lot which are not included, please tell us." </div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Of course the preceding is not an excuse for giving space allocations of interpreted code when I reopened the bug but at that point I was convinced that there was a problem and wasn't critical of the "evidence" I was giving to support my claim.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Thanks </div></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg">George</div></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">On Mon, Dec 12, 2016 at 11:44 AM Joachim Breitner <<a href="mailto:mail@joachim-breitner.de" class="gmail_msg" target="_blank">mail@joachim-breitner.de</a>> wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Montag, den 12.12.2016, 12:44 +0000 schrieb George Colpitts:<br class="gmail_msg">
> my apologies, sorry for the terrible bug report<br class="gmail_msg">
<br class="gmail_msg">
No worries! Better a bug report closed as invalid than a real bug<br class="gmail_msg">
unreported.<br class="gmail_msg">
<br class="gmail_msg">
Greetings,<br class="gmail_msg">
Joachim<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
--<br class="gmail_msg">
Joachim “nomeata” Breitner<br class="gmail_msg">
<a href="mailto:mail@joachim-breitner.de" class="gmail_msg" target="_blank">mail@joachim-breitner.de</a> • <a href="https://www.joachim-breitner.de/" rel="noreferrer" class="gmail_msg" target="_blank">https://www.joachim-breitner.de/</a><br class="gmail_msg">
XMPP: <a href="mailto:nomeata@joachim-breitner.de" class="gmail_msg" target="_blank">nomeata@joachim-breitner.de</a> • OpenPGP-Key: 0xF0FBF51F<br class="gmail_msg">
Debian Developer: <a href="mailto:nomeata@debian.org" class="gmail_msg" target="_blank">nomeata@debian.org</a></blockquote></div></div></div></div></div></div></div>