`runghc Setup.hs configure` fails with "Unsupported cabal format version", while the version should be supported
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
Reproduce with creating cabal package (e.g, with `cabal init`) with `cabal-version: 3.14` and Setup.hs file with:
```
import Distribution.Simple
main = defaultMain
```
Then running `runghc Setup.hs configure` gives:
```
Warning: test9586.cabal:0:0: Unsupported cabal format version in cabal-version
field: 3.14.
Current cabal-version values are listed at
https://cabal.readthedocs.io/en/stable/file-format-changelog.html.
Error: [Cabal-6565]
```
Looking at https://cabal.readthedocs.io/en/3.16/file-format-changelog.html, 3.14 in the version field should be supported.
Running `cabal configure` on the other hand, works.
I stumbled on this issue while creating a test case for this other issue https://github.com/haskell/cabal/issues/9586. They seem similar in the sense that both occur when using `runghc Setup.hs ...` instead of `cabal ...`
---
System:
```
$ cabal --version
cabal-install version 3.16.0.0
compiled using version 3.16.0.0 of the Cabal library (in-tree)
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.10.3
$ nixos-version
25.11.9840.a4bf06618f0b (Xantusia)
```
(Also, I guess the printed link, https://cabal.readthedocs.io/en/stable/file-format-changelog.html, should instead read https://cabal.readthedocs.io/en/3.16/file-format-changelog.html, i.e, match the currently used cabal? 🤔)
Contributor guide
Assessment
This issue has not been assessed yet.