haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.57k stars 676 forks source link

Improve bad cabal-version error message (backport #9754) #10024

Closed mergify[bot] closed 1 week ago

mergify[bot] commented 2 weeks ago

I took a stab at improving the error message one receives for a bad cabal-version field, per the discussion here.

Example message:

Errors encountered when parsing cabal file ./records.cabal:

records.cabal:0:0: error:
Unsupported cabal format version in cabal-version field: 3.10.
Current cabal-version values are listed at https://cabal.readthedocs.io/en/stable/file-format-changelog.html.

Template Α: This PR modifies cabal behaviour

Include the following checklist in your PR:


This is an automatic backport of pull request #9754 done by Mergify.