Skip to content
New issue

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

No ty_of_yojson_exn defined? #77

Open
mars0i opened this issue May 3, 2018 · 2 comments
Open

No ty_of_yojson_exn defined? #77

mars0i opened this issue May 3, 2018 · 2 comments

Comments

@mars0i
Copy link

mars0i commented May 3, 2018

The README says that three functions are defined, including ty_of_yojson_exn. I am only getting the other two functions:

~$ opam list | grep yojson
ppx_deriving_yojson     3.1         JSON codec generator for OCaml >=4.02
yojson                  1.4.1       Yojson is an optimized parsing and printing library for the JSON format
~$ utop
...
# #require "ppx_deriving_yojson";;
# type foo = {a : int} [@@deriving yojson];;
type foo = { a : int; }
val foo_to_yojson : foo -> Yojson.Safe.json = <fun>
val foo_of_yojson : Yojson.Safe.json -> foo Ppx_deriving_yojson_runtime.error_or = <fun>

Is the README out of date, or is something going wrong?

@whitequark
Copy link
Collaborator

whitequark commented May 3, 2018

This isn't present in a released version (and is blocked by #76).

@mars0i
Copy link
Author

mars0i commented May 4, 2018

Ah, OK. So the README is currently wrong for the latest opam release but this is a temporary issue that may be resolved in the code rather than in the README. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants