[Haskell-cafe] IO () and IO [()]
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>
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe