hpack icon indicating copy to clipboard operation
hpack copied to clipboard

Preserve inline `ghc-options` formatting from existing `.cabal` file

Open webdevred opened this issue 2 months ago • 0 comments

Problem:
hpack merges multiple ghc-options entries into a single line or changes indentation. Related: #617

Expected behavior:
Keep each ghc-options entry on its own line with the original indentation.

Example:

-- Before (Gild-formatted)

ghc-options:
  -Wall
  -Wcompat
  -Widentities

-- After (hpack)

ghc-options: -Wall -Wcompat -Widentities

webdevred avatar Oct 31 '25 20:10 webdevred