8000 Generate clean cabal descriptions · Issue #612 · sol/hpack · GitHub
[go: up one dir, main page]

Skip to content

Generate clean cabal descriptions #612

Closed

Description

@simonmichael

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 ?

Activity

  1. sol commented on Apr 1, 2025

    @sol
    Owner

    I think there are two aspects to this:

    1. Tell hpack to use cabal-version: 3.0
    2. Omit the dots when rendering the description, provided that the inferred or specified cabal-version supports 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.

  2. simonmichael commented on Apr 1, 2025

    @simonmichael
    Author

    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).

  3. added 2 commits that reference this issue on Apr 1, 2025
    2ff05a4
    fcac764
  4. sol commented on Apr 1, 2025

    @sol
    Owner

    #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 build will complain later. So I think you will notice this mistake and then be able to correct it.

    Does this work for you?

  5. added a commit that references this issue on Apr 17, 2026
    2dabd67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0