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

Deprecate unused attributes in Deriving.Generator. #368

Merged
merged 3 commits into from
Aug 23, 2022

Conversation

sim642
Copy link
Contributor

@sim642 sim642 commented Aug 19, 2022

Closes #90.

Adds documentation to the make functions in order to have a place to deprecate the argument (similarly to Driver.register_transformation extensions).
Also removes the corresponding unused record field and the commented-out code, which used it.

Copy link
Collaborator

@panglesd panglesd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pitag-ha
Copy link
Member

Thanks, LGTM! I was about to suggest just removing the argument and sending patch PRs to the PPXs we break with that. That would be both better for them and for us. However, I've just seen that quite some PPXs use that argument (even new ones - which shows even more that this PR is important), so just adding deprecating documentation sounds good.

Could you add a changelog entry and format the code?

sim642 added a commit to sim642/ppxlib that referenced this pull request Aug 23, 2022
@sim642 sim642 force-pushed the deriving-generator-attributes branch from 944c339 to 3ed2a1e Compare August 23, 2022 14:26
@sim642 sim642 force-pushed the deriving-generator-attributes branch from 3ed2a1e to 94f3615 Compare August 23, 2022 14:27
@sim642
Copy link
Contributor Author

sim642 commented Aug 23, 2022

Could you add a changelog entry and format the code?

Done!

@pitag-ha pitag-ha merged commit ea81baa into ocaml-ppx:main Aug 23, 2022
pitag-ha added a commit to pitag-ha/opam-repository that referenced this pull request Oct 5, 2022
CHANGES:

- Make `esequence` right-associative. (ocaml-ppx/ppxlib#366, @ceastlund)

- Deprecate unused attributes in `Deriving.Generator` (ocaml-ppx/ppxlib#368, @sim642)

- Remove a pattern match on mutable state in a function argument. (ocaml-ppx/ppxlib#362, @ceastlund)

- Add code-path manipulation attributes. (ocaml-ppx/ppxlib#352, @ceastlund)

- Update context-free rules to collect expansion errors generated by ppxlib and
  propagate them to top level without failing. (ocaml-ppx/ppxlib#358 and ocaml-ppx/ppxlib#361, @ceastlund)
pitag-ha added a commit to pitag-ha/opam-repository that referenced this pull request Oct 6, 2022
CHANGES:

- Make `esequence` right-associative. (ocaml-ppx/ppxlib#366, @ceastlund)

- Deprecate unused attributes in `Deriving.Generator` (ocaml-ppx/ppxlib#368, @sim642)

- Remove a pattern match on mutable state in a function argument. (ocaml-ppx/ppxlib#362, @ceastlund)

- Add code-path manipulation attributes. (ocaml-ppx/ppxlib#352, @ceastlund)

- Update context-free rules to collect expansion errors generated by ppxlib and
  propagate them to top level without failing. (ocaml-ppx/ppxlib#358 and ocaml-ppx/ppxlib#361, @ceastlund)
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.

Request for docs: The ?attributes parameter in Deriving.Generator.make
4 participants