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

Wrapping in BE/LE for bi-endian creates multiple module wrappers #213

Open
XVilka opened this issue Sep 14, 2018 · 1 comment
Open

Wrapping in BE/LE for bi-endian creates multiple module wrappers #213

XVilka opened this issue Sep 14, 2018 · 1 comment

Comments

@XVilka
Copy link
Contributor

XVilka commented Sep 14, 2018

If I use more than one structure - it creates more than one wrapper module with the same name. Should be either only one wrapper (not sure if it is possible with ppx though - to "merge" all structures into the one module), or multiple.

@emillon
Copy link
Contributor

emillon commented Feb 28, 2019

It's possible to do that with a ppx, but you'll probably have to do that in two steps: first, compute all the values and the modules they'll go in, and then build and emit an AST.

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

2 participants