<div dir="ltr"><div>>> For naming, I follow Chris Done's suggestion: <a href="https://chrisdone.com/posts/german-naming-convention/" target="_blank">https://chrisdone.com/posts/german-naming-convention/</a></div><div><br></div><div>Thanks! I didn't know it had this funny name, but the German name convention is also widely used in the Java world. <div>But I wonder how well it works in Haskell, because unlike Java, in Haskell a lot of stuff can happen in a single line. With those long variable names, you'd have to </div><div>break those lines several times. I haven't tried it yet, but I wonder how readable that is in Haskell?</div><div><br></div><div>Or am I looking at the wrong problem here, and should I first of all try to have as little happening in a single line of Haskell as possible?</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 19 Sep 2020 at 18:22, Oliver Charles <<a href="mailto:ollie@ocharles.org.uk">ollie@ocharles.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u><div><div>For indentation and very mechanical formatting, I suggest just using something like hindent, brittany or ormolu (all available at your local Hackage).<br></div><div><br></div><div>For naming, I follow Chris Done's suggestion: <a href="https://chrisdone.com/posts/german-naming-convention/" target="_blank">https://chrisdone.com/posts/german-naming-convention/</a><br></div><div><br></div><div>On Sat, 19 Sep 2020, at 4:32 PM, Misja Alma wrote:<br></div><blockquote type="cite" id="gmail-m_2181960683933835026qt"><div dir="ltr"><div>Thanks, these links are really useful! This definitely answers part of my question.<br></div><div><br></div><div>But what would still be really useful are some more or less generally accepted best practices about variable naming, indentation, when to use nested functions vs when to prefer keeping functions short, etc with regards to readability.<br></div></div><div><br></div><div><div dir="ltr">On Sat, 19 Sep 2020 at 17:10, Henning Thielemann <<a href="mailto:lemming@henning-thielemann.de" target="_blank">lemming@henning-thielemann.de</a>> wrote:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><div>On Sat, 19 Sep 2020, Misja Alma wrote:<br></div><div> <br></div><div> > Does anybody have any tips, or are there some sites or books that I <br></div><div> > could read about this topic?<br></div><div> <br></div><div> It may be a bit old but we have some articles on style in the Haskell <br></div><div> Wiki:<br></div><div>    <a href="https://wiki.haskell.org/Category:Style" rel="noreferrer" target="_blank">https://wiki.haskell.org/Category:Style</a><br></div><div>    <a href="https://wiki.haskell.org/Category:Idioms" rel="noreferrer" target="_blank">https://wiki.haskell.org/Category:Idioms</a><br></div></blockquote></div><div>_______________________________________________<br></div><div>Haskell-Cafe mailing list<br></div><div>To (un)subscribe, modify options or view archives go to:<br></div><div><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br></div><div>Only members subscribed via the mailman list are allowed to post.<br></div></blockquote><div><br></div></div></blockquote></div>