Skip to content

Fix --keep-temp-files given to Cabal lib versions that don't have it. - #12184

Open
nh2 wants to merge 1 commit into
haskell:masterfrom
nh2:fix-keep-temp-files-Setup-smaller-3.13
Open

Fix --keep-temp-files given to Cabal lib versions that don't have it.#12184
nh2 wants to merge 1 commit into
haskell:masterfrom
nh2:fix-keep-temp-files-Setup-smaller-3.13

Conversation

@nh2

@nh2 nh2 commented Jul 30, 2026

Copy link
Copy Markdown
Member

See #10292 (review)


Template Α: This PR modifies behaviour or interface

Include the following checklist in your PR:

CC @9999years

`Cabal < 3.13` did not support this flag
(it did for `... haddock` but not `... repl`).
So `Setup.hs` compiled with such older versions rejects it.

This causes errors for users of `haskell-language-server` if
they have a custom `Setup.hs` depending on `Cabal < 3.13`,
because it makes `hie-bios` pass the nonexistent flag,
causing error:

    unrecognized 'repl' option `--keep-temp-files'
    Error: [Cabal-7125]
    repl failed for my-package-0.1.0.0.

`filterCommonFlags` already removes the flag for `lib:Cabal < 3.13`.
@nh2 nh2 mentioned this pull request Jul 30, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant