[Haskell-cafe] IO () and IO [()]

Neil Mitchell ndmitchell at gmail.com
Mon Mar 10 19:41:59 EDT 2008


Hi

> In Python the syntax to create 1-tuple is (element,). Note the ",". It's not
> the most beautiful but is acceptable.

But in Haskell we can write tuples in infix syntax, i.e. (,) is the 2
tuple. Unfortunately, this syntax doesn't suggest anything for the
infix 1-tuple, and clashes with the 2-tuple a bit.

Thanks

Neil


More information about the Haskell-Cafe mailing list