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
It may be useful for backward-compatibility or forward-compatibility to just test whether you can successfully decode JSON, without trying to test the matching encoding.
This example assumes there is a list of inner decoders we really want to test. But it might be worth considering only making the function test the exact decoding shape and if you call it you can wrap i t in Aeson.Decode.list yourself. We could also provide a couple common decoding functions, one as a list and one as a sample (much like the current functions, but those aren't framed as a test).
The text was updated successfully, but these errors were encountered:
It may be useful for backward-compatibility or forward-compatibility to just test whether you can successfully decode JSON, without trying to test the matching encoding.
Example:
This example assumes there is a list of inner decoders we really want to test. But it might be worth considering only making the function test the exact decoding shape and if you call it you can wrap i t in
Aeson.Decode.list
yourself. We could also provide a couple common decoding functions, one as a list and one as a sample (much like the current functions, but those aren't framed as a test).The text was updated successfully, but these errors were encountered: