purescript-codec-argonaut
purescript-codec-argonaut copied to clipboard
Bi-directional JSON codecs for argonaut
variantMatch function -> don't use either to differentiate between parsers and nullary constructors
In docs ``` The fields in the record passed to CAV.variantMatch correspond with the variant constructors. Each one accepts an Either carrying either a codec or a static value -...
It would be nice if this library provided a codec for converting a `String` of JSON to an actual `Json` value. I imagine it would look like this: ```purescript jsonStringCodec...
I haven't looked at the implementation to see if there's a reason it requires the list implementation, but they should be equivalent. The reason I ask is that `Data.Codec.basicCodec` could...
Is there any situation in which the RowToList based version isn't strictly superior? If not I'd suggest we just delete the other one.
https://github.com/haskell/aeson/issues/1050 Modified version of taggedSum embedding value into JS object where tag key is defined ``` -- | Standard Argonaut "taggedSum" always wraps encoded content -- into sub object and...
Argonaut library has functions to deal with lot of builtin types including Maybe, though I cannot find an option for Identity. identity combinator, besides making the library more logically complete,...
There is the `maybe` in `Compat`, but I'd rather have it more explicitly called out in the places I need it. Also perhaps some kind of hybrid optional thing that...
If I use camelCase in my codebase, and an API uses snake_case, it seems like I have to use `prismaticCodec` and create converter functions that convert `{field_name :: Foo}` to...
more information https://github.com/garyb/purescript-codec-json/pull/8#issuecomment-2409131244