Repository navigation
Closed
Description
Activity
I think there are two aspects to this:
- Tell
hpackto usecabal-version: 3.0 - Omit the dots when rendering the description, provided that the inferred or specified
cabal-versionsupports this.
For (1), please refer to https://github.com/sol/hpack?tab=readme-ov-file#cabal-version.
However, I think (2) is currently not implemented. Let me look into it.
- Tell
Thanks. I did try 1, but in addition to not yet enabling 2 it loses the benefit of hpack's smart version selection (so I might accidentally use a newer unsupported feature).
- added 2 commits that reference this issue
on Apr 1, 2025 #613 addresses (2).
it loses the benefit of hpack's smart version selection (so I might accidentally use a newer unsupported feature)
Yes, that's not ideal, but I think
cabal buildwill complain later. So I think you will notice this mistake and then be able to correct it.Does this work for you?
Reacted by Simon Michael- added a commit that references this issue
on Apr 17, 2026
Metadata
Metadata
Assignees
Labels
No labels
Since https://cabal.readthedocs.io/en/stable/file-format-changelog.html#cabal-version-3-0 , "Free text fields (e.g. description) preserve empty lines and indentation. In other words, you don’t need to add dots for blank lines."
Since 3.0 has been around for a long time, I'd like to start generating my cabal files with this cabal-version, and avoid adding the silly dots for blank lines, if possible. What's a good way to force hpack to select cabal-version 3.0 ?