[Haskell-cafe] Comma in the front

Tim Docker timd at macquarie.com.au
Thu Jul 13 19:37:40 EDT 2006


On Jul 12, 2006, at 9:18 PM, Joel Reymont wrote:

> Are cool kids supposed to put the comma in front like this?
>
> , foo
> , bar
> , baz
>
> Is this for historical or other reasons because Emacs formats Haskell 
> code well enough regardless.
>
> 	Thanks, Joel
>

These layouts feel a bit artificial to me. I am quite partial to
python's
list syntax - a trailing comma is optional. meaning you can write

    [
       a,
       b,
       c,
    ]

I'm surprised this approach isn't more widespread - Are there reasons
why
haskell syntax could not/should not be defined this way?

Tim



More information about the Haskell-Cafe mailing list