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

to_json / of_yojson attribute example doesn't compile #114

Open
gs0510 opened this issue Feb 6, 2020 · 1 comment
Open

to_json / of_yojson attribute example doesn't compile #114

gs0510 opened this issue Feb 6, 2020 · 1 comment

Comments

@gs0510
Copy link

gs0510 commented Feb 6, 2020

The compilation of the example here fails with

File "_none_", line 1:
Error: Unbound value StringMap.to_yojson

My workaround right now is to define:

type attrs = string StringMap.t
let attrs_to_json m = StringMap.bindings m |> [%to_yojson: (string * string) list]
@gs0510 gs0510 changed the title to_json / of_yojson attribute example doesn't compile! to_json / of_yojson attribute example doesn't compile Feb 18, 2020
@RCmerci
Copy link

RCmerci commented Mar 14, 2020

same problem with ppx_deriving_yojson 3.5.1

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