Skip to content

Add module bindings and module declarations to deriving #576

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

patricoferris
Copy link
Collaborator

In #546 a feature request was made for [@@deriving ...] to work on module bindings (and perhaps their signature counterpart declarations).

Some notes:

  • I had to disable the cinaps str_to_sig stuff as module bindings and declarations are not as nicely symmetric as other types.
  • Like other [@@deriving] features, derived code is placed after the node, therefore using this with module bindings will not place the code inside the module definition but after it. I think some amount of includeing can work around this maybe (on the end user's side)?

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.

1 participant