haskell / haskell/cabal

config section in ~/.cabal/config for the init workflow crashes when specifying newer cabal versions

Open
#7,300 8 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.