Add upper bound on ghcjs-base back into -jsffi#106
Merged
hamishmack merged 1 commit intomasterfrom May 9, 2024
Merged
Conversation
PR #105 relaxed the `ghcjs-base` bound on `ghcjs-dom-jsffi`, but the fix was for `ghcjs-dom-javascript`. We should not be using both `ghcjs-dom-jsffi` and `ghcjs-dom-javascript` at the same time. Packages should either depend on `ghcjs-dom` only (and let it choose the correct implementation library) or do something like: ``` if impl(ghc >9) build-depends: ghcjs-dom-javascript else build-depends: ghcjs-dom-jsffi ```
Member
Author
|
@sevanspowell can you please check adding this bound back will work for |
Contributor
|
Of course. I was getting this error: After a bit of investigation, it's because I had added a cabal.project file to servant-jsaddle (my fork at least), that referenced the "ghcjs-dom-jsffi" subdir: So having that subdir there added a constraint on the package, which I didn't expect. It was enough to remove them: Sorry about that. Good to go now. Thanks for clarifying that |
sevanspowell
added a commit
to sambnt/haskell-js-templates
that referenced
this pull request
May 7, 2024
- Adding the ghcjs-dom-jsffi package to the cabal.project file adds an implicit constraint on that package. In the case of ghcjs-dom, we don't want to depend on ghcjs-dom-jsffi unless we're using a much earlier version of ghc. - See ghcjs/ghcjs-dom#106.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR #105 relaxed the
ghcjs-basebound onghcjs-dom-jsffi, but the fix was forghcjs-dom-javascript. We should not be using bothghcjs-dom-jsffiandghcjs-dom-javascriptat the same time.Packages should either depend on
ghcjs-domonly (and let it choose the correct implementation library) or do something like: