-
Notifications
You must be signed in to change notification settings - Fork 77
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
ghcjs support #75
Comments
I'm open to the idea, but this is the first time I've tried something like this. It would probably make more sense to put the GHCJS-specific bindings in a separate package and conditionally depend on it. |
The trouble is that one of my application's dependencies (groundhog) parses YAML, rather than me depending on Option 1 would be for me to patch your If you're not into that (I understand - it dirties up The deciding factor is probably whether or not there are other commonly used libraries that do yaml parsing and may want to be ghcjs compatible. If so, then it may make most sense to put the CPP here in |
To clarify: I was saying that there should be a separate package the binds to a Javascript YAML library, and then this yaml package could use it conditionally, depending on whether the implementation is ghc or ghcjs. |
Ah, I didn't realize that you meant this. That sound fine to me. The only thing really required to make everything transparent for downstream users is that |
Yup. We already have a good approach to this I think: |
Thanks. I'll see if I can get a patch together for this. |
Closing since there's no progress here. |
It would be nice if we could parse yaml from code compiled by ghcjs. This should be possible by binding a .js yaml parsing library instead of the c lib-yaml library here in the
yaml
package and choosing between them using CPP macros.It may be difficult to get the same level of error reporting from the available javascript libraries. I'm not sure. The most popular js yaml parser seems to be js-yaml
Have you thought about anything around the issue of ghcjs? What conditions would you want to see met if you would take a PR for this kind of thing?
The text was updated successfully, but these errors were encountered: