<div dir="ltr">+1 for stylish-haskell --- I have it enabled in my save-hook for most of my patches. It would be good to check in a stylish haskell YAML dotfile into the repo with some sane/uncontroversial settings (I like the horizontal alignment but a lot of people don&#39;t), then make a one-time pass over the repo. It will cause merge conflicts on any pending merge request however.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 19, 2013 at 3:23 PM, Brent Yorgey <span dir="ltr">&lt;<a href="mailto:byorgey@seas.upenn.edu" target="_blank">byorgey@seas.upenn.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Mar 18, 2013 at 06:08:35PM -0700, Jason Dagit wrote:<br>
&gt; On Mon, Mar 18, 2013 at 5:15 PM, Ben Millwood &lt;<a href="mailto:haskell@benmachine.co.uk">haskell@benmachine.co.uk</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt; Hi everyone,<br>
&gt; &gt;<br>
&gt; &gt; Do we have a general notion of what we consider best practices for<br>
&gt; &gt; contributed code to Cabal? Perhaps we should formalise something?<br>
&gt; &gt;<br>
&gt; &gt; One of the reasons I wanted to get the wiki back online was in the hope<br>
&gt; &gt; that it had some pointers, but it doesn&#39;t seem to. (I&#39;ve started migrating<br>
</div>&gt; &gt; stuff anyway: have a look at <a href="https://github.com/haskell/**" target="_blank">https://github.com/haskell/**</a><br>
&gt; &gt; cabal/wiki/Migration-from-trac&lt;<a href="https://github.com/haskell/cabal/wiki/Migration-from-trac" target="_blank">https://github.com/haskell/cabal/wiki/Migration-from-trac</a>&gt;for status).<br>
<div class="im">&gt; &gt;<br>
&gt; &gt; For example, many of the Cabal modules have explicit, and therefore quite<br>
&gt; &gt; long, import lists, with no clear organisation, and hence when adding new<br>
&gt; &gt; imports I have to read the entire list to make sure they are not already<br>
&gt; &gt; there, and then wonder where makes sense to insert them. Usually I just<br>
&gt; &gt; make something up with no pattern to it, and hence perpetuate the problem.<br>
&gt; &gt;<br>
&gt;<br>
&gt; My experience is that without an automated tool or editor command to<br>
&gt; organize the headers humans are unlikely to do it. A quick google search<br>
&gt; didn&#39;t turn up any vim or emacs commands for this relating to haskell.<br>
<br>
</div>We have<br>
<br>
  <a href="http://hackage.haskell.org/package/stylish%2Dhaskell" target="_blank">http://hackage.haskell.org/package/stylish%2Dhaskell</a><br>
<br>
which is integrated into Chris Done&#39;s extensions to the emacs<br>
haskell-mode: <a href="https://github.com/haskell/haskell-mode" target="_blank">https://github.com/haskell/haskell-mode</a>.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Brent<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<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><br clear="all"><div><br></div>-- <br>Gregory Collins &lt;<a href="mailto:greg@gregorycollins.net" target="_blank">greg@gregorycollins.net</a>&gt;
</div>