-
Notifications
You must be signed in to change notification settings - Fork 42
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
OCaml support #24
Comments
The generated code uses We could of course generate different code depending on configuration flags. There's a similarly named project at https://github.com/andreas/ppx_graphql that might be of interest for the native case, though. |
I looked at ppx_graphql first, but it has major limitations – the lack of support for unions is a major one. |
|
@shinzui, I haven't spend much time on It would be great to consolidate efforts, and I have actually spend a great deal of time looking into this, but it seems to me that the tax of being Bucklescript-compatible is quite high. In particular you're stuck on OCaml v4.02.3, but even worse, all transitive dependencies must be BS-compatible too. For example, this means no Alcotest when writing tests. I would love to see a united Reason/OCaml ecosystem, but it appears quite hard in practice. I wonder if there are any libraries that have pulled this off successfully to learn from? |
@andreas I'm not sure it's a big problem with dependencies here. Since only the output has to be BS compatible and the ppx itself is compiled to native. |
Since we migrated over to distributing binaries in the npm package, I guess nothing's really preventing us from moving to the latest OCaml release as long as the output is compatible with BuckleScript as @wokalski said. |
Is there any reason why this package does not support native OCaml? I quickly perused the source code and I didn't see anything JavaScript specific.
The text was updated successfully, but these errors were encountered: