We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
57 | |> [%to_yojson: (string * Version.t) list] ^^^^^^^^^ Error: Uninterpreted extension 'to_yojson'.
I have (preprocess (pps ppx_yojson_conv)) and (libraries yojson) in my dune file
(preprocess (pps ppx_yojson_conv))
(libraries yojson)
Is something else needed?
Also the readme seems to suggest that Hashtbl can be derived https://github.com/janestreet/ppx_yojson_conv#hash-tables
but:
module X = struct type t = (string, string) Hashtbl.t [@@deriving yojson] end
gives: Unbound value Hashtbl.t_of_yojson
Unbound value Hashtbl.t_of_yojson
The text was updated successfully, but these errors were encountered:
the former seems to need (libraries ppx_deriving_yojson.runtime)?
(libraries ppx_deriving_yojson.runtime)
Sorry, something went wrong.
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: ...]
to_yojson
[%yojson_of: ...]
🤦♂️ thanks
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: