[Haskell-cafe] IO () and IO [()]
Lennart Augustsson
lennart at augustsson.net
Thu Mar 13 08:29:22 EDT 2008
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 <bos at serpentine.com>
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080313/fe73899b/attachment.htm
More information about the Haskell-Cafe
mailing list