More diff friendly pretty printing of cabal filesCabal-v1.20.0.0-rccabal-install-v1.20.0.0-rc2
commit1ecd69c7127be446b42e736d72b5d6956a40db52
authorDaniel Trstenjak <daniel.trstenjak@gmail.com>
Sat, 1 Mar 2014 14:45:59 +0000 (1 15:45 +0100)
committerJohan Tibell <johan.tibell@gmail.com>
Thu, 17 Apr 2014 06:21:34 +0000 (17 08:21 +0200)
treef22205b6e0c0c6d3f25614b253eb51a3f03f1666
parentfa101c5c2c4c9fcee294fdf1b71f59917cbf39cb
More diff friendly pretty printing of cabal files

Added the new field constructor functions 'listFieldWithSep'
and 'commaListFieldWithSep' to be able to define pretty printing
for fields, where each value of the field is positioned on a new line.

Which fields are nested is currently hard coded in the 'ppField' function.

(cherry picked from commit e8d5ea254ab2ed037819bcd094146062ecca7a0b)
Cabal/Distribution/PackageDescription/Parse.hs
Cabal/Distribution/PackageDescription/PrettyPrint.hs
Cabal/Distribution/ParseUtils.hs