RE: proposal for anonymous-sum syntax

2003-02-22 Thread Conal Elliott
, 2003 4:28 PM To: Haskell Mailing List Subject: proposal for anonymous-sum syntax Haskell has nice syntactic support for unnamed product types (tuples). It is as though there were builtin several datatype definitions of the form: data (a,b) = (a,b) data (a,b,c) = (a,b,c

proposal for anonymous-sum syntax

2003-02-21 Thread Richard Nathan Linger
Haskell has nice syntactic support for unnamed product types (tuples). It is as though there were builtin several datatype definitions of the form: data (a,b) = (a,b) data (a,b,c) = (a,b,c) data (a,b,c,d) = (a,b,c,d) ... But for sum types, there is only one

Re: proposal for anonymous-sum syntax

2003-02-21 Thread Andrew J Bromage
G'day all. On Fri, Feb 21, 2003 at 04:28:27PM -0800, Richard Nathan Linger wrote: What do people think about this? Has anyone else ever wished they had such support for unnamed sums? I sometimes wish that Haskell did _not_ have support for unnamed product types. To be honest, how hard is it