8000 Preserve order of `extra-source-files` from existing `.cabal` file · Issue #632 · sol/hpack · GitHub
[go: up one dir, main page]

Skip to content

Preserve order of extra-source-files from existing .cabal file #632

Open

Description

@webdevred

Problem:
hpack reorders files in the extra-source-files section, which affects diff readability. Related: #617

Expected behavior:
Keep the original order exactly as written.

Example:

-- Before (Gild)

extra-source-files:
  README.md
  examples/jbeam/fender.jbeam
  examples/jbeam/frame.jbeam
  examples/jbeam/suspension.jbeam

-- After (hpack)

extra-source-files:
  README.md
  JBFL_DOCS.md
  examples/README.md
  examples/jbeam/fender.jbeam
  examples/jbeam/frame.jbeam
  examples/jbeam/suspension.jbeam

Activity

  1. changed the title [-]Preserve order of `extra-source-files` to be more compatibile with cabal-gild[/-] [+]Preserve order of `extra-source-files` to be more compatible with cabal-gild[/+] on Oct 31, 2025
  2. sol commented on Nov 1, 2025

    @sol
    Owner

    @webdevred

    1. This doesn't look quite right, the two .cabal file snippets are not semantically the same.

    Can you please adjust this accordingly, so that it is clear what's going on here. Please also provide a minimal package.yaml + describe the file structure, if necessary.

  3. changed the title [-]Preserve order of `extra-source-files` to be more compatible with cabal-gild[/-] [+]Preserve order of `extra-source-files` from existing `.cabal` file[/+] on Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0