Skip to content

Conversation

rgrinberg
Copy link
Collaborator

This PR introduces a hygiene API in the spirit of Ppx_deriving.quoter.
The main differences are:

  • We can't use metaquot
  • There are no optional arguments
  • We don't wrap stuff with modules as this can be easily handled
    separately

This PR introduces a hygiene API in the spirit of Ppx_deriving.quoter.
The main differences are:

* We can't use metaquot
* There are no optional arguments
* We don't wrap stuff with modules as this can be easily handled
  separately

Signed-off-by: Rudi Grinberg <[email protected]>
@rgrinberg rgrinberg requested review from a user and NathanReb August 23, 2019 12:36
@rgrinberg rgrinberg requested a review from xclerc as a code owner August 23, 2019 12:36
@rgrinberg
Copy link
Collaborator Author

It seems like I'm unable to #install_printer on the Pprintast printers. Any idea as to why this isn't working?

@ghost
Copy link

ghost commented Sep 4, 2019

Not sure about the install_printer problem. We should switch all these tests to ppx_expect at some point anyway

Signed-off-by: Rudi Grinberg <[email protected]>
@rgrinberg
Copy link
Collaborator Author

I've written up some docs. Shall I rename the module to Quoter? I'm not sure if Quote or Quoter is more natural here.

Signed-off-by: Jeremie Dimino <[email protected]>
@ghost
Copy link

ghost commented Sep 10, 2019

Quoter seems like a better name indeed. Appart from that, it looks good to merge.

Signed-off-by: Rudi Grinberg <[email protected]>
@rgrinberg
Copy link
Collaborator Author

@diml I renamed it.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to merge!

@ghost
Copy link

ghost commented Sep 11, 2019

And for people who might be watching this PR: we are adding this module to make it easier to port plugins from Ppx_deriving to Ppx.Deriving

@rgrinberg rgrinberg merged commit 830c521 into ocaml-ppx:master Sep 11, 2019
@rgrinberg rgrinberg deleted the derivings-quote-api branch September 11, 2019 10:03
@rgrinberg
Copy link
Collaborator Author

Thanks for the review, I'll prepare a corresponding PR to ppx.

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