[Haskell-cafe] Inconsistent trailing comma in export list and record syntax
Christopher Done
chrisdone at googlemail.com
Mon Jul 11 11:42:57 CEST 2011
On 11 July 2011 10:49, L Corbijn <aspergesoepje at gmail.com> wrote:
> You could of course say that I'm using a bad style, but it remains that it
> seems to be inconsistent to allow a trailing comma in one place and not in
> the other. So is there an reason for this?
I've also noticed that I can write
data X = X deriving Show
But not
import Prelude hiding print
But we can write
x :: Foo x => …
x :: (Foo x) => …
Can write
class X
But not
module X
I wouldn't expect that there are particular argued reasons for these
inconsistencies. It's difficult to balance a consistent syntax in a
language while trying to be convenient. I don't think it matters too
much.
More information about the Haskell-Cafe
mailing list