Skip to content

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