[Haskell-cafe] Is () a 0-length tuple?

John Dorsey haskell at colquitt.org
Fri Nov 6 17:38:57 EST 2009


> In what sense () is a 0-length tuple?

In what sense isn't it?

Data.Tuple is much to narrow to be of any use here.  () is in at least most,
if not all, of the type classes that tuples are in.  The syntax is
strikingly similar.

If you ask me, it walks/quacks/smells like a duck, so it's a duck.

Regards,
John



More information about the Haskell-Cafe mailing list