Cabal File Pretty Printer
Daniel Trstenjak
daniel.trstenjak at gmail.com
Sat Mar 1 15:12:32 UTC 2014
On Sat, Mar 01, 2014 at 01:58:14PM +0100, Daniel Trstenjak wrote:
> is there a reason why the function 'fieldGet' of 'FieldDescr' in
> 'Distribution.ParseUtils' formats only the contents of the field
> and not also the field name?
>
> Having the field 'build-type: Simple', then 'fieldGet' only formats
> the part 'Simple' and the 'build-type: ' part is formated in
> 'Distribution.PackageDescription.PrettyPrint'.
>
> This makes it harder to give certain fields a nesting without special
> casing in 'Distribution.PackageDescription.PrettyPrint'.
>
> If the complete field would be formated by 'fieldGet', then nesting
> could be nicely integrated into the 'listField' and 'commaListField'
> functions of 'Distribution.ParseUtils'.
I have now created a pull request for this change on github.
Is github the right place for doing this for cabal?
Greetings,
Daniel
More information about the cabal-devel
mailing list