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
_______________________________________________
cabal-devel mailing list
cabal-devel@haskell.org
http://www.haskell.org/mailman/listinfo/cabal-devel

Reply via email to