Skip to content

fix(Cabal): Do not pass -optJSP to GHC < 9.10.2 - #12398

Merged
mergify[bot] merged 2 commits into
haskell:masterfrom
zlonast:zlonast/no-optJSP-before-9.12
Nov 22, 2026
Merged

mergify[bot] merged 2 commits into
haskell:masterfrom
zlonast:zlonast/no-optJSP-before-9.12

Conversation

@zlonast

@zlonast zlonast commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

The jspp-options field is rendered as ghc -optJSP<opt>, but that flag only exists since GHC 9.10.2, so a package using jspp-options could not be built at all with GHC < 9.10.2.


Template Α: This PR modifies behaviour or interface

Include the following checklist in your PR:

hummbl-dev

This comment was marked as spam.

@zlonast
zlonast force-pushed the zlonast/no-optJSP-before-9.12 branch from 7ad37df to 688c9c7 Compare October 7, 2026 17:49
@zlonast zlonast changed the title fix(Cabal): Do not pass -optJSP to GHC < 9.12 fix(Cabal): Do not pass -optJSP to GHC < 9.10.2 Oct 7, 2026
@zlonast
zlonast force-pushed the zlonast/no-optJSP-before-9.12 branch 2 times, most recently from 4c868e2 to 4f4782a Compare October 7, 2026 17:52

@leana8959 leana8959 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be helpful to warn the user when the flag is not passed to GHC?

zlonast added a commit to zlonast/cabal that referenced this pull request Nov 4, 2026
Review feedback on haskell#12398: 'renderGhcOptions' now omits -optJSP for older
compilers, which would silently ignore the user's jspp-options. Emit a
build-time warning in that case, naming the compiler version found. Also
rename the ghc912 binding (leftover from the original PR title) to
jsppSupported.

Co-authored-by: Léana <leana.jiang+git@icloud.com>
@zlonast

zlonast commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

@leana8959 I like your idea

@mergify mergify Bot added the 👻 haunting the review queue Set by Mergify: no review from anyone with write access two weeks after opening label Nov 6, 2026
zlonast added a commit to zlonast/cabal that referenced this pull request Nov 7, 2026
Review feedback on haskell#12398: 'renderGhcOptions' now omits -optJSP for older
compilers, which would silently ignore the user's jspp-options. Emit a
build-time warning in that case, naming the compiler version found, and
likewise when the compiler version is unknown. Also rename the ghc912
binding (leftover from the original PR title) to jsppSupported.

Co-authored-by: Léana <leana.jiang+git@icloud.com>
@zlonast
zlonast force-pushed the zlonast/no-optJSP-before-9.12 branch from 9fa00e4 to d6c13ac Compare November 7, 2026 13:29
@mergify mergify Bot removed the 👻 haunting the review queue Set by Mergify: no review from anyone with write access two weeks after opening label Nov 7, 2026

@leana8959 leana8959 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you :)

@zlonast zlonast added the 1️⃣ more approval needed Set by Mergify: has one of the two required approvals label Nov 8, 2026
@mergify mergify Bot removed the 1️⃣ more approval needed Set by Mergify: has one of the two required approvals label Nov 18, 2026
@zlonast zlonast added merge me Tell Mergify Bot to merge and removed attention: needs-review labels Nov 19, 2026
@mergify mergify Bot added ready and waiting Mergify is waiting out the cooldown period merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days queued labels Nov 19, 2026
@mergify

mergify Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

🚫 Left the queue · conflict with base branch

2 h 9 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Sat 21 Nov, 04:53 · rule default · triggered by rule Put pull requests in the rebase+merge queue
  • 🚫 Left the queue 07:03 · d6c13ac

Reason

The pull request conflicts with master

Conflicting file: Cabal/src/Distribution/Simple/Program/GHC.hs

Before this, the pull request was held in the queue behind 1 pull request ahead of it.

To get back in the queue

  • You should update or rebase your pull request. A pull request in a stack is updated by rebasing the stack onto the branch it conflicts with. A pull request queued by a rule comes back to the queue once updated, as long as the rule still matches.
  • If it was queued with a command, update it, then comment @mergifyio queue to queue it again.

Times in UTC · dashboard · how the merge queue works

zlonast added a commit to zlonast/cabal that referenced this pull request Nov 21, 2026
Review feedback on haskell#12398: 'renderGhcOptions' now omits -optJSP for older
compilers, which would silently ignore the user's jspp-options. Emit a
build-time warning in that case, naming the compiler version found, and
likewise when the compiler version is unknown. Also rename the ghc912
binding (leftover from the original PR title) to jsppSupported.

Co-authored-by: Léana <leana.jiang+git@icloud.com>
@zlonast
zlonast force-pushed the zlonast/no-optJSP-before-9.12 branch from 324f7d7 to 9f2c15e Compare November 21, 2026 09:03
zlonast added a commit to zlonast/cabal that referenced this pull request Nov 21, 2026
Review feedback on haskell#12398: 'renderGhcOptions' now omits -optJSP for older
compilers, which would silently ignore the user's jspp-options. Emit a
build-time warning in that case, naming the compiler version found, and
likewise when the compiler version is unknown. Also rename the ghc912
binding (leftover from the original PR title) to jsppSupported.

Co-authored-by: Léana <leana.jiang+git@icloud.com>
@zlonast
zlonast force-pushed the zlonast/no-optJSP-before-9.12 branch from 9f2c15e to 5852f95 Compare November 21, 2026 09:04
zlonast added a commit to zlonast/cabal that referenced this pull request Nov 21, 2026
Review feedback on haskell#12398: 'renderGhcOptions' now omits -optJSP for older
compilers, which would silently ignore the user's jspp-options. Emit a
build-time warning in that case, naming the compiler version found, and
likewise when the compiler version is unknown. Also rename the ghc912
binding (leftover from the original PR title) to jsppSupported.

Co-authored-by: Léana <leana.jiang+git@icloud.com>
@zlonast
zlonast force-pushed the zlonast/no-optJSP-before-9.12 branch 3 times, most recently from fc57a97 to bbf5113 Compare November 21, 2026 09:09
Co-authored-by: Léana <leana.jiang+git@icloud.com>
@zlonast
zlonast force-pushed the zlonast/no-optJSP-before-9.12 branch from bbf5113 to de000b1 Compare November 21, 2026 11:46
@mergify mergify Bot added the queued label Nov 21, 2026
@mergify

mergify Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

❌ Left the queue · Validate windows-latest ghc-9.10.3 fails with this pull request

1 h 54 min in the queue, 1 h 43 min of it CI.

So far

  • ✅ Entered the queue Sat 21 Nov, 13:27 · rule default · triggered by rule Put pull requests in the rebase+merge queue
  • ❌ Checks failed · draft #12645
  • 🚫 Left the queue 15:21 · de000b1

The failure is in this pull request. It failed tested alone on top of master.

Reason

The merge conditions cannot be satisfied due to failing checks

  • Validate post job

Failing checks:

To get back in the queue

  • Push a fix: the pull request is queued again once its queue conditions match.
  • If the failure is a flake, comment @mergifyio queue to queue it again as it is.

Merge conditions not met when it left the queue

  • any of · required by GitHub branch protection:
    • check-neutral = Validate post job
    • check-skipped = Validate post job
    • check-success = Validate post job
11 merge conditions met
  • #review-threads-unresolved = 0 · required by GitHub branch protection
  • github-review-approved · required by GitHub branch protection
  • any of · required by GitHub branch protection:
    • check-success = Doctest Cabal
    • check-neutral = Doctest Cabal
    • check-skipped = Doctest Cabal
  • any of · required by GitHub branch protection:
    • check-success = Meta checks
    • check-neutral = Meta checks
    • check-skipped = Meta checks
  • any of · required by GitHub branch protection:
    • check-success = docs/readthedocs.org:cabal
    • check-neutral = docs/readthedocs.org:cabal
    • check-skipped = docs/readthedocs.org:cabal
  • any of · required by GitHub branch protection:
    • check-success = fourmolu
    • check-neutral = fourmolu
    • check-skipped = fourmolu
  • any of · required by GitHub branch protection:
    • check-success = hlint
    • check-neutral = hlint
    • check-skipped = hlint
  • any of · required by GitHub branch protection:
    • check-success = Bootstrap post job
    • check-neutral = Bootstrap post job
    • check-skipped = Bootstrap post job
  • any of · required by GitHub branch protection:
    • check-success = whitespace
    • check-neutral = whitespace
    • check-skipped = whitespace
  • any of · required by GitHub branch protection:
    • check-success = Check sdist post job
    • check-neutral = Check sdist post job
    • check-skipped = Check sdist post job
  • any of · required by GitHub branch protection:
    • check-success = Changelogs
    • check-neutral = Changelogs
    • check-skipped = Changelogs

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot mentioned this pull request Nov 21, 2026
42 of 87 tasks
@mergify mergify Bot added dequeued and removed queued labels Nov 21, 2026
@zlonast

zlonast commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into master as 9937ef4 at 07:40 UTC

1 h 50 min in the queue, 1 h 39 min of it CI.

So far

12 merge conditions met
  • #review-threads-unresolved = 0 · required by GitHub branch protection
  • github-review-approved · required by GitHub branch protection
  • any of · required by GitHub branch protection:
    • check-success = Doctest Cabal
    • check-neutral = Doctest Cabal
    • check-skipped = Doctest Cabal
  • any of · required by GitHub branch protection:
    • check-success = Meta checks
    • check-neutral = Meta checks
    • check-skipped = Meta checks
  • any of · required by GitHub branch protection:
    • check-success = docs/readthedocs.org:cabal
    • check-neutral = docs/readthedocs.org:cabal
    • check-skipped = docs/readthedocs.org:cabal
  • any of · required by GitHub branch protection:
    • check-success = Validate post job
    • check-neutral = Validate post job
    • check-skipped = Validate post job
  • any of · required by GitHub branch protection:
    • check-success = fourmolu
    • check-neutral = fourmolu
    • check-skipped = fourmolu
  • any of · required by GitHub branch protection:
    • check-success = hlint
    • check-neutral = hlint
    • check-skipped = hlint
  • any of · required by GitHub branch protection:
    • check-success = Bootstrap post job
    • check-neutral = Bootstrap post job
    • check-skipped = Bootstrap post job
  • any of · required by GitHub branch protection:
    • check-success = whitespace
    • check-neutral = whitespace
    • check-skipped = whitespace
  • any of · required by GitHub branch protection:
    • check-success = Check sdist post job
    • check-neutral = Check sdist post job
    • check-skipped = Check sdist post job
  • any of · required by GitHub branch protection:
    • check-success = Changelogs
    • check-neutral = Changelogs
    • check-skipped = Changelogs

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added queued and removed dequeued labels Nov 22, 2026
@mergify
mergify Bot merged commit 9937ef4 into haskell:master Nov 22, 2026
73 checks passed
@mergify mergify Bot removed the queued label Nov 22, 2026
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 merge me Tell Mergify Bot to merge ready and waiting Mergify is waiting out the cooldown period

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants