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 skeleton for PPX derivers #1

Open
craigfe opened this issue Jan 6, 2020 · 0 comments
Open

Add skeleton for PPX derivers #1

craigfe opened this issue Jan 6, 2020 · 0 comments

Comments

@craigfe
Copy link
Owner

craigfe commented Jan 6, 2020

Using the ppxlib workflow described in https://tarides.com/blog/2019-05-09-an-introduction-to-ocaml-ppx-ecosystem. In particular:

  • lib/deriver.ml with a Located functor consuming an Ast_builder.S;
  • deriver/ppx_<project>.ml that registers {sig,str}_type_decl_generator functions taken from the library using first-class modules;
  • test/deriver/{errors,passing}/*.{ml,expected} files with corresponding gen_dune_rules.ml script and a dune promote workflow.
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

1 participant