This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 17 Jul, 2014 1 commit
  2. 12 Jun, 2014 1 commit
  3. 24 Apr, 2014 3 commits
  4. 17 Apr, 2014 1 commit
    • Daniel Trstenjak's avatar
      More diff friendly pretty printing of cabal files · 1ecd69c7
      Daniel Trstenjak authored and tibbe's avatar tibbe committed
      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)
      1ecd69c7
  5. 16 Apr, 2014 1 commit
    • Daniel Trstenjak's avatar
      More diff friendly pretty printing of cabal files · e8d5ea25
      Daniel Trstenjak authored
      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.
      e8d5ea25
  6. 14 Apr, 2014 2 commits
  7. 12 Apr, 2014 1 commit
    • Daniel Trstenjak's avatar
      Fixed pretty printing of fields · fdf8afce
      Daniel Trstenjak authored and tibbe's avatar tibbe committed
      The list constructors 'nestedListField' and 'nestedCommaListField'
      have been added and are now used for fields that should be pretty
      printed with nesting.
      fdf8afce
  8. 10 Apr, 2014 3 commits
  9. 08 Apr, 2014 2 commits
  10. 21 Mar, 2014 1 commit
  11. 01 Mar, 2014 1 commit
    • Daniel Trstenjak's avatar
      More diff friendly pretty printing of cabal files · 73dd1c26
      Daniel Trstenjak authored
      Now the 'fieldGet' function of 'FieldDescr' does the
      whole pretty printing of the field. Previously only the
      values have been pretty printed by 'fieldGet' and the
      name of the field with the colon have been printed
      in the 'PrettyPrint' module.
      
      But this separation made it more difficult to handle the
      pretty printing of fields differently, because some fields
      should be just printed in one lines and others - having several
      values - should be printed nested with each value on a new line.
      
      This difference in the printing of the fields is now handled by
      the 'FieldDescr' constructor functions in 'ParseUtils'.
      
      Now the 'listField' and 'commaListField' functions create 'FieldDescr'
      that nest their values and all other functions create one line
      for the whole field.
      73dd1c26
  12. 22 Feb, 2014 1 commit
  13. 02 Feb, 2014 1 commit
  14. 08 Jan, 2014 1 commit
    • Duncan Coutts's avatar
      New license-files field. · a7b58b1f
      Duncan Coutts authored
      Based closely on the patches by Mathieu Boespflug <mboes@cs.mcgill.ca>
      
      This field is intended to be used instead of (or in addition to) the
      normal 'license-file' field by packages that have multiple files for
      their license material. This is useful when eg the license is
      supplemented by additional permissions and/or conditions. Notably,
      the LGPL is structured in this way: it amends the GPL with additional
      permissions, therefore one should distribute both the GPL in COPYING
      and the LGPL in COPYING.LESSER.
      
      So we keep both the license-file and license-files fields (rather than
      deprecating one) and packages can use either or a mixture.
      a7b58b1f
  15. 17 Dec, 2013 2 commits
  16. 05 Dec, 2013 2 commits
  17. 28 Oct, 2013 2 commits
  18. 21 Aug, 2013 1 commit
  19. 20 Aug, 2013 2 commits
  20. 11 Jul, 2013 1 commit
  21. 10 Jul, 2013 1 commit
  22. 06 Jun, 2013 1 commit
  23. 07 May, 2013 1 commit
  24. 02 May, 2013 1 commit
  25. 25 Mar, 2013 1 commit
  26. 06 Mar, 2013 1 commit
  27. 21 Feb, 2013 1 commit
  28. 20 Feb, 2013 1 commit
    • ttuegel's avatar
      Don't pretty-print unparseable test suite types. · ab9fe920
      ttuegel authored
      Issue #1202. The pretty printer was printing 'type: -' for empty test
      suite interfaces.  The empty test interface type is the result of
      parsing a branch in a conditional block where no type is explicitly
      specified (i.e., the type is inherited from a higher level or propagated
      up from a lower one).  Therefore, the pretty-printer should not print
      any 'type' field at all for test suites with an empty test interface
      type.
      ab9fe920
  29. 14 Jan, 2013 1 commit
    • John Wiegley's avatar
      Add extra-html-files, for installing extra html files · 49a2be96
      John Wiegley authored
      For example, you might have an images/ directory in your project, with
      images that you refer to from Haddock with:
      
          <<images/foo.png>>
      
      Then in your Cabal file you would include:
      
          extra-html-files: images/*.png
      
      And these would both be packaged by sdist, and "cabal haddock" will
      install them in:
      
          ~/.cabal/share/doc/PROJECT/html/images/*.png
      
      Fixes #1167
      49a2be96
  30. 04 Jan, 2013 1 commit