Skip to content

Conversation

@JoshMeredith
Copy link
Collaborator

A previous Cabal MR (#3997) added a workaround for GHC incorrectly returning JavaScriptFFI in the list of ghc --supported-extensions (https://gitlab.haskell.org/ghc/ghc/-/issues/11214).

With the upstreaming of GHCJS into the GHC JavaScript backend, this should be fixed in GHC (https://gitlab.haskell.org/ghc/ghc/-/merge_requests/10505) so that non-JavaScript targets don't returning this extension, allowing the workaround to be reverted in Cabal for newer GHC versions.

@Kleidukos
Copy link
Member

@JoshMeredith Hi! Is this something that you plan on backporting to the other minor releases? Will we have to perform a version check on GHC from cabal-install to make sure that the caller's GHC has incorporated your patch?

@JoshMeredith
Copy link
Collaborator Author

No current plans for this to be backported in GHC, so I believe the major version check I've included in this MR will have to stay around.

The JavaScript backend doesn't actually use this language extension (it works without it), so there's not a strong need for this to be fixed in that way - but the existence of it is preventing the JavaScript backend from reaching full Cabal support.

@Kleidukos
Copy link
Member

@JoshMeredith jolly good. Shall I let you put the "squash + merge me" label?

@JoshMeredith
Copy link
Collaborator Author

@Kleidukos I'd be excited to add the label, but I'm not sure I have access to do so

@hsyl20 hsyl20 added the squash+merge me Tell Mergify Bot to squash-merge label May 30, 2023
@mergify mergify bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Jun 1, 2023
@mergify mergify bot merged commit 8c9a71e into haskell:master Jun 2, 2023
@Mikolaj
Copy link
Member

Mikolaj commented Jun 17, 2023

@mergify backport 3.10

@mergify
Copy link
Contributor

mergify bot commented Jun 17, 2023

backport 3.10

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jun 17, 2023
#8979)

* Revert workaround to filter JavaScriptFFI out on GHC versions where GHC issue 11214 is fixed.

* Lint

* Lint

* Update version range to reflect the fix being included in GHC 9.8

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 8c9a71e)

# Conflicts:
#	Cabal/src/Distribution/Simple/GHC.hs
mergify bot added a commit that referenced this pull request Jun 17, 2023
Revert workaround to filter JavaScriptFFI out on GHC versions where G… (backport #8979)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days squash+merge me Tell Mergify Bot to squash-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants