I don't think writing (1,) is an option for Haskell, it looks like a section
(and should be one).

On Wed, Mar 12, 2008 at 9:13 PM, Bryan O'Sullivan <[EMAIL PROTECTED]>
wrote:

> Lennart Augustsson wrote:
> > Yes, I wish Haskell had a 1-tuple.  The obvious syntax is already taken,
> > but I could accept something different, like 'One a'.
>
> Python's one-tuple syntax is (1,).  The obvious difficulty with adapting
> this notation to Haskell lies in how one might write the constructor as
> a section.
>
>        <b
>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to