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?)

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to