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

Pasqualino "Titto" Assini tittoassini at gmail.com
Fri Nov 6 17:08:59 EST 2009


Hi,

I just noticed that the json library maps () to a JSON empty array: [].

This makes sense if () is a 0-length tuple, the (2,"hi") tuple for
example maps to [2,"hi"]

But is it so in Haskell?

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

Thanks,

              titto


More information about the Haskell-Cafe mailing list