-
Notifications
You must be signed in to change notification settings - Fork 187
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
Compilation failure for postgresql-simple #267
Comments
I have the same problem, but with my own package... Any thoughts why this error occurs? |
Can you share the code of your package, or preferably a minimal example that reproduces this with as few dependencies as possible? |
Project is rather big and close sourced, it use |
I'm getting this error as well with a project that depends on postgres-simple. |
hmm, I'm getting |
It's indeed a problem with |
Hmm, I'm not sure if I can fix this with the current GHC. GHCJS should probably generate the code for |
adding a hook for |
Has there been any progress on this issue? |
Hi!
… or is there a workaround? I'm trying to compile database model and stuck with this. |
Same problem here with custom code and also interested in any workaround. I have two commits of which one causes the error, but even by looking on the diff between the commits I can't figure out what piece of code exactly produces the error. It's devilish. |
I found a workaround in my code by changing my internal module structure. This one triggers the compilation failure: ( <- means "imports"). All those modules are internal ones.
I removed the last dependency: AesonBson doesn't import Base64 anymore and it compiles now. |
Same problem here. |
Same here. It was easy to resolve, though: after I found this issue I just removed my latest hs-boot file and shuffled the code a little. |
Anyone had any luck with getting this working for postgresql-simple? |
One thing you could do:
This is a bit sillly, but it will almost certainly work, and from what @luite says above I suspect that the proper fix will involve upstream changes in ghc and take a long time. |
@fisx Do you think it would work to replace TH declarations with their generated code by hand? There a lot of code there so putting it all into one file and getting it compiling is a little daunting (and indeed silly ;) Edit: That worked a treat - only one file actually used TH, so it wasn't too much effort |
@ruhatch not sure. i know very little about how this problem works; i just ran into it once and resolved it by eliminating if you find that running TH with GHC, then running GHCJS on the TH-free code solves the problem too i'd be interested to know. |
Still getting this with GHCJS 8.6
@luite, any progress here? EDIT: seems to not be a problem in |
The text was updated successfully, but these errors were encountered: