-
Notifications
You must be signed in to change notification settings - Fork 59
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
Example project sends XHR requests when built with reflex-platform but not with haskell.nix #113
Comments
Hello! Interesting problem. My first thought is for you to fork
Thank you for the repro case, maybe this is a good time for me to try out |
My current workaround in my other project is to compile the linux and windows binaries using haskell.nix - and the JS parts are managed by reflex-platform. So that works for now, but it would of course be great to not have to mix platforms. I will also tinker around with the |
Yeah, that sounds reasonable but not fun. One quick observation while building your |
they have their own patches on ghc etc., and they have their own binary cache. you will have long waiting times if you don't use that, see their docs/github project page |
Hi,
i have a little example project that consists of a backend and a frontend with a shared API definition.
https://github.com/tfc/reflex-servant-backend-frontend-example/tree/haskell-nix
Now it does work really well when built with reflex-platform, but for different reasons i would like to build it with haskell.nix.
It is very easy to switch between both nix libraries, but the haskell.nix-built version of the app does not send any XHR requests. I don't see anything in the browser console that makes sense.
When running the same thing with jsaddle in ghc and simpleCors activated, it does work. But that is not how i could deploy it.
I put both nix libraries into the linked branch for others to reproduce, and i also put the pkg versions into the folder
pkg-diffs
for further inspection (apart from servant-reflex which i use from the master branch here via overrides). Of course there are compiler differences but i was unable to compile both with the same compiler version.I am not expecting anyone to fix that for me but i am currently simply clueless how to debug this problem at all. Any advice?
The text was updated successfully, but these errors were encountered: