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

Add sexp_of cenum attribute, use sexplib0 #316

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

reynir
Copy link
Member

@reynir reynir commented Sep 9, 2024

The sexp_of_* functions now return Sexplib0.Sexp.t instead of Sexplib.Sexp.t. The cenum attribute [@@sexp_of] is like [@@sexp] except it only produces the sexp_of* function. This allows for generating sexp_of converters without depending on the full sexplib library.

The sexp_of_* functions now return Sexplib0.Sexp.t instead of
Sexplib.Sexp.t. The cenum attribute [@@sexp_of] is like [@@sexp] except
it only produces the sexp_of* function. This allows for generating
sexp_of converters without depending on the full sexplib library.
@reynir
Copy link
Member Author

reynir commented Sep 9, 2024

I found it wasn't too difficult to use sexplib0 instead of sexplib in cstruct-sexp so I went ahead with that. I think it might be possible to entirely move to sexplib0 over sexplib....

@reynir
Copy link
Member Author

reynir commented Sep 9, 2024

I can't quite figure out macos CI. I note we use avsm/setup-ocaml@v1 -- should we use ocaml/setup-ocaml@v2 instead? And how to migrate?

@hannesm
Copy link
Member

hannesm commented Sep 11, 2024

taking #315 into account, to fix the CI here, maybe we should remove ocaml-migrate-parsetree dependency?

And no longer ocaml-migrate-parsetree.
the macos-latest target seems to be arm64...
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.

2 participants