config section in ~/.cabal/config for the init workflow crashes when specifying newer cabal versions
Open
Cabal: parser
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
config section in ~/.cabal/config for the init workflow crashes when specifying newer cabal versions
this is fine
```
init
interactive: True
-- cabal-version: 2.4
-- license:
-- tests:
-- test-dir:
-- language: Haskell2010
-- application-dir: app
-- source-dir: src
```
this is not
```
init
interactive: True
cabal-version: 3.2
-- license:
-- tests:
-- test-dir:
language: Haskell2010
application-dir: app
source-dir: src
```
yields this error
```
cabal: Error parsing config file /Users/wrn6115/.cabal/config:141:
Parse of field 'cabal-version' failed (Cannot parse Cabal specification
version: 3.2): 3.2
```
Contributor guide
Assessment
This issue has not been assessed yet.