Skip to content

Assume at least cabal-version: 3.4 when using pkg:lib syntax #649

@mpilgrem

Description

@mpilgrem

The Cabal project's introduction of pkg:lib syntax for dependencies in cabal-version: 3.0 involved a misstep that was fixed in cabal-version: 3.4. See:

I suggest that future versions of Hpack should assume that if a user makes use of pkg:lib syntax, they intend to use at least cabal-version: 3.4 and not (as presently assumed) cabal-version: 3.0.

Not least, that is because Cabal-3.4.0.0, released 2021-02-06, is itself over 5 years old. That is, I doubt if anyone using Hpack today really wishes to pick cabal-version: 3.0 over cabal-version: 3.4.

The motivation is that I find myself adding verbatim: because Hpack is picking the 'broken' version of the syntax.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions