Cabal File Pretty Printer

Tillmann Rendel rendel at informatik.uni-marburg.de
Wed Feb 26 14:51:36 UTC 2014


Hi,

Johan Tibell wrote:
> If we could encode a style guide in a formatter, it would be much easier
> for us to do automatic rewriting of Cabal files, which is needed for
> features like `cabal freeze`

Many cabal files are generated by `cabal init`, which uses a consistent 
style that is different from the styles proposed in this thread. If the 
pretty printer is to encode a style guide that people are supposed to 
follow, I think the following would make sense:

  1. change `cabal init` to use the pretty printer.
  2. expose the pretty printer at the command line.

   Tillmann


More information about the cabal-devel mailing list