purescript-contrib/purescript-argonaut-codecs

An instance for nested tuples?

ursi opened this issue · 0 comments

ursi commented

I recently figured out how to get nested tuples to encode and decode as JSON arrays
e.g.

1 /\ "hi" /\ [ true ] /\ { a: 0 } -> [ 1, "hi", [ true ], { "a": 0 } ]

I did this for simple-json but I'm pretty sure the approach would work here as well. Unexpectedly to me, the PR was not accepted. In light of that, I figured I'd ask if this would be a welcome addition before I put in the work.