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 e8d5ea25)
Showing
- Cabal/Distribution/PackageDescription/Parse.hs 11 additions, 11 deletionsCabal/Distribution/PackageDescription/Parse.hs
- Cabal/Distribution/PackageDescription/PrettyPrint.hs 7 additions, 18 deletionsCabal/Distribution/PackageDescription/PrettyPrint.hs
- Cabal/Distribution/ParseUtils.hs 52 additions, 22 deletionsCabal/Distribution/ParseUtils.hs
Loading
Please register or sign in to comment