[Haskell-cafe] Coding conventions for Haskell?

Andrew Coppin andrewcoppin at btinternet.com
Fri Oct 1 14:40:00 EDT 2010

  On 30/09/2010 02:56 PM, Henning Thielemann wrote:
> Andrew Coppin schrieb:
>>   On 29/09/2010 02:18 PM, Henning Thielemann wrote:
>>> The truth is: Given the separator style of constructor definition,
>>> there is no correct way to format those declarations. :-) The correct
>>> way would be to allow terminator style.
>> Well, yes, there is that. (And this isn't the only place in the syntax
>> where it applies either. Tried editing export lists lately? Or Cabal
>> module lists?)
> In export and import lists you can use commas as terminators, however in
> constructor lists you cannot.

I accidentally discovered that it works in export lists a few weeks ago. 
I assumed it was a bug.

> In Cabal you can write one module per line and need no separator or
> terminator at all.

Really? As far as I can tell, that doesn't work at all...

More information about the Haskell-Cafe mailing list