[Haskell-cafe] Readable Haskell
Brody Berg
brodyberg at gmail.com
Sat Sep 19 16:28:04 UTC 2020
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 at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20200919/5ae056d3/attachment.html>
More information about the Haskell-Cafe
mailing list