[Haskell-cafe] Coding conventions for Haskell?

Andrew Coppin andrewcoppin at btinternet.com
Wed Sep 29 16:38:03 EDT 2010

  On 29/09/2010 02:18 PM, Henning Thielemann wrote:
> Andrew Coppin wrote:
>> Tastes do indeed vary. To me, both of these are incorrect, and the 
>> correct way is
>>   data Foo a b =
>>       Foo    a   |
>>       Bar      b |
>>       Foobar a b
>>     deriving (Eq, Ord)
> 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?)

More information about the Haskell-Cafe mailing list