Catherine
Catherine
No, this is not possible. The problem with adding this as a feature is that it is not flexible; there is no single format JSON APIs use for serializing sum...
I'm actually open to ideas in regards to this, I just don't know how/if it can be implemented without bloating the interface terribly.
https://github.com/whitequark/ppx_deriving_yojson#options And to the second question, no. There's been discussion on schemas on mantis but those are vaporware.
This isn't present in a released version (and is blocked by #76).
Yeah, `[@to_yojson]`/`[@from_yojson]` seem fine.
ppx_deriving is kind of broken right now, but I haven't had time to work properly on it due to FOSS overload. sorry.
Only on host at compile-time.
First, you should use the -toolchain option of ocamlfind itself. Second, you will not be able to use unmodified META files. In fact you will have to modify the META...
> First, you should use the -toolchain option of ocamlfind itself. Sorry, let me correct that above, as I wrote a typo. You should use the -toolchain option of _ocamlbuild_...
I don't think ppx_deriving_yojson supports GADTs, but also I think your code should work. It seems to be a bug.