Open anentropic opened 3 years ago
the former seems to need (libraries ppx_deriving_yojson.runtime)
?
Is there any update on this? I don't have enough time to take a deep look, but I stuck.
It's not to_yojson
. It should be [%yojson_of: ...]
🤦♂️ thanks
I'm trying to work out how to define my own to/from functions for some types that can't be derived automatically
I'm getting this error:
I have
(preprocess (pps ppx_yojson_conv))
and(libraries yojson)
in my dune fileIs something else needed?
Also the readme seems to suggest that Hashtbl can be derived https://github.com/janestreet/ppx_yojson_conv#hash-tables
but:
gives:
Unbound value Hashtbl.t_of_yojson