As a person who has been trying to learn Haskell for years I have a private joke related to reading Haskell source which is “It has been x days since I’ve seen completely unintelligible Haskell.” My sense is that language extensions are a big part of this - they can have a significant impact on readability and for a novice it is not at all clear how to differentiate the text changes wrought by the extension. And in the presence of multiple or even many extensions? Forget it. 

So yes, I agree Haskell can be hard to read - and we haven’t even dredged up the point/point-free debate!

With Kindness, 

Brody

On Sat, Sep 19, 2020 at 08:33 Misja Alma <misja.alma@gmail.com> wrote:
Thanks, these links are really useful! This definitely answers part of my question.

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.

On Sat, 19 Sep 2020 at 17:10, Henning Thielemann <lemming@henning-thielemann.de> wrote:



On Sat, 19 Sep 2020, Misja Alma wrote:





> Does anybody have any tips, or are there some sites or books that I


> could read about this topic?





It may be a bit old but we have some articles on style in the Haskell


Wiki:


   https://wiki.haskell.org/Category:Style


   https://wiki.haskell.org/Category:Idioms




_______________________________________________

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.