github.com/phadej/cabal-fmt ↗
An experiment of formatting .cabal files
Open this visualization on its own page →
Contributors
4
Lines of Code
288
From
2018-12-16
To
2021-02-14
About phadej/cabal-fmt
cabal-fmt is a code formatter for Cabal package description files written in Haskell. It automatically reformats .cabal files to follow consistent styling conventions, handling indentation, spacing, and layout throughout the file. The tool takes messily formatted Cabal files and outputs cleanly standardized versions.
The project includes integration with popular text editors. For Emacs users, configuration can be added to a .dir-locals.el file to enable automatic formatting on save. Vim users have two options: the dedicated vim-cabalfmt plugin or the general-purpose neoformat tool, both of which support cabal-fmt as a backend formatter. The tool requires cabal-fmt to be available in the system PATH for these editor integrations to work.