-
Notifications
You must be signed in to change notification settings - Fork 10
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
Does not build on GHCJS #40
Comments
Hi @Saulzar. I've never been able to successfully build |
OK, with the help of the folks at the #ghcjs IRC channel, I was able to get further than before. In fact, I was able to build the entirety of |
Hmm. I don't quite understand the error, maybe it's got nothing to do with text-show. Looks like that module should be present - but the interface files are missing in my environment (I'm using the reflex-platform). In this enviornment the text version is 1.2.2.1 which definitely has this module, and I can import it just fine compiling with ghcjs --make. |
I managed to build a project using text-show without any problems using stack and ghcjs-0.2.1.9008011_ghc-8.0.2. But as I'm switching to reflex-platform I ran into the described problem as well. So I'd assume it's a problem on the reflex-platform side. |
There's now an issue in the reflex-platform project: reflex-frp/reflex-platform#466 |
OK. I'm not familiar with how |
My current understanding is that nothing needs to be done in text-show but only in reflex-platform. text-show as it is compiles with ghcjs. reflex-platform (when used with ghcjs) uses a fork of the text package that doesn't expose Data.Text.Foreign. And within reflex-platform there is already a place to adjust packages that are dependent on the forked text package. I'm currently looking into this and hopefully get a PR ready soon. |
Are these patches tied to particular Hackage releases? My concern is that as |
Here is the PR I made for reflex-platform (reflex-frp/reflex-platform#468). Ryan from the reflex project is asking if you'd be interested in taken it. Maybe just have a look. |
@RyanGlScott I think it's really on reflex-platform to make this work, but if you would be willing to have a flag that chops out the Foreign stuff, that would definitely make our lives easier! For what it's worth, the reason we use a non-standard |
Judging from the patch, it looks like the only part that's giving |
The usefulness of this instance was dubious at best, and moreover, it was actively causing issues when building `text-show` with `reflex-platform` (see #40).
@RyanGlScott Thanks! I really appreciate you sorting this out :) @tgass Want to strip out the patch in reflex-platform? |
@ryantrinkle Sure. I'll just revert the commit and open a PR. |
I've uploaded |
@RyanGlScott Awesome; thanks! |
Is it meant to? (ghcjs 0.2.0, ghc 8.0.2)
src/TextShow/Data/Text.hs:25:1: error:
Failed to load interface for ‘Data.Text.Foreign’
The text was updated successfully, but these errors were encountered: