[Haskell-cafe] Coding Standards (Coding Conventions)
I wonder if there are any Coding Standards or Coding Conventions for Haskell. Does anybody know something about it? Kind regards, Philipp Volgger ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Coding Standards (Coding Conventions)
pvolgger: I wonder if there are any Coding Standards or Coding Conventions for Haskell. Does anybody know something about it? We've collected some style guides on the wiki. You could also look at projects whose code you think is in good style. http://haskell.org/haskellwiki/Category:Style GHC has a style guide. Our small little window manager, xmonad, also has a pretty strict style guide. -- Don ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Coding Standards (Coding Conventions)
On 28/05/07, Donald Bruce Stewart [EMAIL PROTECTED] wrote: Our small little window manager, xmonad, also has a pretty strict style guide. where? Perhaps I need coffee, but I couldn't find this in the source (xmonad, x11-extras, XMonadContrib) or documentation links from xmonad.org :-/ Conrad. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Coding Standards (Coding Conventions)
conrad: On 28/05/07, Donald Bruce Stewart [EMAIL PROTECTED] wrote: Our small little window manager, xmonad, also has a pretty strict style guide. where? Perhaps I need coffee, but I couldn't find this in the source (xmonad, x11-extras, XMonadContrib) or documentation links from xmonad.org :-/ Oh, sorry, it doesn't have a written style guide, just some conventions we should write down. I was unclear. -- Don ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Coding Standards (Coding Conventions)
On 5/28/07, Donald Bruce Stewart [EMAIL PROTECTED] wrote: pvolgger: I wonder if there are any Coding Standards or Coding Conventions for Haskell. Does anybody know something about it? We've collected some style guides on the wiki. You could also look at projects whose code you think is in good style. http://haskell.org/haskellwiki/Category:Style GHC has a style guide. Our small little window manager, xmonad, also has a pretty strict style guide. Pugs has a style described here: http://svn.pugscode.org/pugs/docs/Pugs/Doc/Hack/Style.pod It recommends against punning datatypes and constructors, since we've noticed that confuses people reading the code. It also proposes a convention that minimizes clashes in field names. Pugs code tends to favor declarative over expression style and where over let. -- Gaal Yahas [EMAIL PROTECTED] http://gaal.livejournal.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe