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

LSP: migrate to ppx_protocol_conv #948

Closed
wants to merge 3 commits into from
Closed

Conversation

Khady
Copy link
Contributor

@Khady Khady commented Mar 28, 2019

Beginning of the work on #937.

So I started to translate the code from ppx_deriving_yojson to ppx_protocol_conv_json. There are some good things. For example it can translate a constructor with no argument to a string. So there is no need to write the conversion functions by hand in this case. On the other hand, it uses exception instead of the result type, which is a bit sad and annoying. So either the code must be adapted to catch the exceptions. Or we can ask upstream if using the result type would be possible.

The code doesn't compile yet but I haven't had time to work on it in the past few days. Pushing it here in case someone wants to help.

@Khady
Copy link
Contributor Author

Khady commented May 2, 2019

I have the impression that ppx_protocol_conv brings a dependency on compiler-libs. The exact reason is not clear to me. But not much success so far.

@Khady Khady closed this May 2, 2019
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

Successfully merging this pull request may close these issues.

None yet

1 participant