Good Haskell coding standards

前端 未结 5 1232
被撕碎了的回忆
被撕碎了的回忆 2021-01-29 17:55

Could someone provide a link to a good coding standard for Haskell? I\'ve found this and this, but they are far from comprehensive. Not to mention that the HaskellWiki one inclu

5条回答
  •  广开言路
    2021-01-29 18:08

    • I like to try to organize functions as point-free style compositions as much as possible by doing things like:

      func = boo . boppity . bippity . snd
          where boo = ...
                boppity = ...
                bippity = ...
      
    • I like using ($) only to avoid nested parens or long parenthesized expressions

    • ... I thought I had a few more in me, oh well

提交回复
热议问题