phadej/cabal-fmt

Created Feb 22, 2021 · View the phadej/cabal-fmt repository page

An experiment of formatting .cabal files

Want this for your repo?

Render a free sample of any GitHub repo in seconds.

Visualize your own →

Contributors

4

Lines of Code

288

From

Dec 16, 2018

To

Feb 14, 2021

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.

Share this video

More from phadej

See all →