purescript-codec-argonaut
purescript-codec-argonaut copied to clipboard
Bi-directional JSON codecs for argonaut
I couldn't find the behavior suggested by the original notes. Happy to add an example if it is possible to pull the JSON structure, but I'll need some help finding...
Partially resolves #29 - no record-based sugar for it still, but it's still useful in this form. /cc @gabejohnson @kritzcreek
`Set`, `NonEmptySet`, `NonEmptyString`, `NonEmptyArray` come to mind.
I have a rough thing that works for this using an `# optionalProp` combinator rather than the record syntactic sugar, but would like to come up with a way that...
I'm trying to decode a JSON field that can have values of `Int` or `String`. Unfortunately I don't have a way to change the serialization. Following the docs it looks...
To add missign prop we use: ```purs addDefaultField "someProp" (encode C.string "") >~> ``` But "someProp" may not exist on the record type and it is not type-checked. Would it...
How would you advise to work with `DataTime` from the core package and codecs, is the preferred way would be to convert it to `Milliseconds` using `unInstant $ Instant.fromDate date`...
Not an idle question: `Affjax` error type called `Error` `Data.Interval` has type `Error ` Some `Halogen` packages expose type `Error` This package exposes `JsonDecodeError` type. Why it is was decided...
This library is often confused with [argonaut-codecs](https://github.com/purescript-contrib/purescript-argonaut-codecs). Could we make the names more distinct? For example, maybe rename this to `purescript-argonaut-roundtrip`?