[Haskell-cafe] [Haddock] Alphabetize record accessors

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Mon Jun 8 03:28:24 UTC 2015


On 8 June 2015 at 13:23, aditya siram <aditya.siram at gmail.com> wrote:
> How would people feel about Haddock alphabetizing record accessors by
> default?
>
> For example:
>     data T { b :: ..., c :: ... , a :: ... }
> displays as:
>     data T { a :: ..., b :: ... , c :: ... }
>
> Seems as though projects that have large records like Cabal & Parsec would
> benefit from this.

In some (many?) cases, there is a logical ordering to the values.
Considering my own code, the records in GraphvizParams here matches
the ordering that they're used/found in the resultant Dot graph:
http://hackage.haskell.org/package/graphviz-2999.17.0.2/docs/Data-GraphViz.html#t:GraphvizParams

>
> Thanks!
> -deech
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>



-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list