
11 Jul
2011
11 Jul
'11
5:42 a.m.
On 11 July 2011 10:49, L Corbijn
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.