Cabal File Pretty Printer

Daniel Trstenjak daniel.trstenjak at
Sat Mar 1 12:58:14 UTC 2014

Hi all,

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

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'.


More information about the cabal-devel mailing list