Skip to content
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

Try to use GHCJS #135

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Try to use GHCJS #135

wants to merge 1 commit into from

Conversation

vrom911
Copy link
Member

@vrom911 vrom911 commented Aug 17, 2019

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 with ghc compiler (version 8.4 is used in order to be consistent with ghcjs used version). Should be used to build backend (as per plan)
  • cabal-ghcjs.project — builds with ghcjs compiler. Should be used to build frontend.

To build backend:

cabal new-build all

To build frontend:

cabal new-build all --project=cabal-ghcjs.project

@vrom911 vrom911 added the wontfix This will not be worked on label Aug 17, 2019
@chshersh chshersh changed the base branch from master to main November 6, 2020 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant