Skip to content

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

Open
zlonast wants to merge 1 commit into
haskell:masterfrom
zlonast:zlonast/no-optJSP-before-9.12
Open

zlonast wants to merge 1 commit 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.12, so a package using jspp-options could not be built at all with GHC < 9.12.


Template Α: This PR modifies behaviour or interface

Include the following checklist in your PR:

The `jspp-options` field is rendered as `ghc -optJSP<opt>`, but that flag
only exists since GHC 9.12. Passing it to an older GHC makes the invocation
fail outright, so a package using `jspp-options` could not be built at all
with GHC < 9.12. Gate the flag on the compiler version instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants