Cabal File Pretty Printer

Adam Bergmark adam at bergmark.nl
Fri Feb 28 08:50:31 UTC 2014


+1 on changing the format.

Picking a specific format is bound to annoy some people, but I don't think
anyone prefers the current one. The last option mentioned looks the best to
me.

- Adam



On Thu, Feb 27, 2014 at 8:23 PM, Erik Hesselink <hesselink at gmail.com> wrote:

> On Wed, Feb 26, 2014 at 4:01 PM, Johan Tibell <johan.tibell at gmail.com>
> wrote:
> > On Wed, Feb 26, 2014 at 3:51 PM, Tillmann Rendel
> > <rendel at informatik.uni-marburg.de> wrote:
> >>
> >>  1. change `cabal init` to use the pretty printer.
> >>  2. expose the pretty printer at the command line.
> >
> > Agreed on both points. We should add (2) as `cabal format` (similar to
> > go-fmt) or something like that.
>
> I would love to have this, it would make editing cabal files with
> tools much more appealing. What would be ideal would be a way to edit
> the files while preserving whitespace. But I know from
> haskell-src-exts that this is a very tricky thing to get right.
>
> Regards,
>
> Erik
> _______________________________________________
> cabal-devel mailing list
> cabal-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/cabal-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/cabal-devel/attachments/20140228/166ffa1f/attachment.html>


More information about the cabal-devel mailing list