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

Improve PPX template #124

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

Improve PPX template #124

wants to merge 3 commits into from

Conversation

pkel
Copy link

@pkel pkel commented Dec 15, 2021

I try to improve the PPX template a bit:

  • The rewriter in bin/main.exe can now be used on source files directly.
  • The CONTRIBUTING.md documents this feature.

I try to improve the PPX template a bit:
- The rewriter in `bin/main.exe` can now be used on source files directly.
- The `CONTRIBUTING.md` documents this feature.
@@ -0,0 +1,3 @@
open Ppxlib
Copy link
Owner

Choose a reason for hiding this comment

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

Shouldn't this file be .ml and not .mli? Also should we add a dune file with a test stanza for it?

Copy link
Author

Choose a reason for hiding this comment

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

You're right.

There is a story to this. The original template had no test/{{ project_snake }}_test.mli and make test was complaining that the mli file is missing. I was confused and tried to copy the empty bin/main.mli to test/{{ project_snake }}_test.mli. Missed an i obviously. But how can it first ask for an mli and then accept an invalid mli?

I'll try again.

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