You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no upper bound on the size of a tuple, but some Haskell implementations may restrict the size of tuples, and limit the instances associated with larger tuples. However, every Haskell implementation must support tuples up to size 15, together with the instances for Eq, Ord, Bounded, Read, and Show. The Prelude and libraries define tuple functions such as zip for tuples up to a size of 7.
However, currently aeson only provides instances for tuple instances up to 4-tuples; therefore I suggest to add at least instances for 5-, 6-, and 7-tuples to satisfy the principle of least surprise (and avoid requiring orphan instances).
I'll gladly provide a pull request if needed.
The text was updated successfully, but these errors were encountered:
Providing this instances is motived by the Haskell Report suggesting
that libraries ought to support tuples up to a size of 7
(see http://www.haskell.org/onlinereport/basic.html#basic-tuples):
> The Prelude and libraries define tuple functions such as zip for
> tuples up to a size of 7.
This fixeshaskell#144
According to the Haskell Report,
However, currently
aeson
only provides instances for tuple instances up to 4-tuples; therefore I suggest to add at least instances for 5-, 6-, and 7-tuples to satisfy the principle of least surprise (and avoid requiring orphan instances).I'll gladly provide a pull request if needed.
The text was updated successfully, but these errors were encountered: