haskell / haskell/cabal

cabal init generates badly formatted file

Open
#5,555 8 comments 0 reactions 1 assignee Claimed by @m-renaud View on GitHub
cabal-install: cmd/init exact-print type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

(tried with cabal installed from master branch)

`cabal init` generates .cabal file with very long lines for fields like `other-extensions`, `exposed-modules` and `build-depends`. Fixing this by hand is tedious. Cabal format helps, but that's hard to discover (#2460). Ideally I think cabal should format the file before automatically.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.