Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Okay, guys. I did not succeed in integrating GHCJS to frontend. Here is what I've got so far.
The stopper at the moment is
network
library — see this issue.Also, the crucial thing that I have noticed: switching between different type of compilers (ghc and ghcjs) requires to rebuild everything from scratch every time. This is kinda inappropriate and a huge stop sign for me at the moment. I'm building with cabal. Stack doesn't support
ghcjs
anymore, so the possible solution could be to build the frontend with Stack and backend with Cabal, but, I don't know is this would be good either.This PR is just to show purposes only.
Build instructions
We have two
cabal.project
files:cabal.project
— used by default, builds withghc
compiler (version8.4
is used in order to be consistent withghcjs
used version). Should be used to build backend (as per plan)cabal-ghcjs.project
— builds withghcjs
compiler. Should be used to build frontend.To build backend:
To build frontend: