<div dir="ltr">+1 on changing the format.<div><br></div><div>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.</div>
<div><br></div><div>- Adam</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 27, 2014 at 8:23 PM, Erik Hesselink <span dir="ltr"><<a href="mailto:hesselink@gmail.com" target="_blank">hesselink@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Feb 26, 2014 at 4:01 PM, Johan Tibell <<a href="mailto:johan.tibell@gmail.com">johan.tibell@gmail.com</a>> wrote:<br>

> On Wed, Feb 26, 2014 at 3:51 PM, Tillmann Rendel<br>
> <<a href="mailto:rendel@informatik.uni-marburg.de">rendel@informatik.uni-marburg.de</a>> wrote:<br>
>><br>
>>  1. change `cabal init` to use the pretty printer.<br>
>>  2. expose the pretty printer at the command line.<br>
><br>
> Agreed on both points. We should add (2) as `cabal format` (similar to<br>
> go-fmt) or something like that.<br>
<br>
</div></div>I would love to have this, it would make editing cabal files with<br>
tools much more appealing. What would be ideal would be a way to edit<br>
the files while preserving whitespace. But I know from<br>
haskell-src-exts that this is a very tricky thing to get right.<br>
<br>
Regards,<br>
<br>
Erik<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
cabal-devel mailing list<br>
<a href="mailto:cabal-devel@haskell.org">cabal-devel@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/cabal-devel" target="_blank">http://www.haskell.org/mailman/listinfo/cabal-devel</a><br>
</div></div></blockquote></div><br></div>