patch applied (cabal): When multiple specifying list fields in the same section combine them

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Wed Apr 23 17:06:40 EDT 2008


Wed Apr 23 13:15:19 PDT 2008  Duncan Coutts <duncan at haskell.org>
  * When multiple specifying list fields in the same section combine them
  eg if you had:
  extensions: Foo
  extensions: Bar, Baz
  then previously we only ended up with [Bar, Baz]. Now we get them all.
  Only applies to list fields, for single fields the second value is taken
  and the first is silently discarded. This isn't good of course but the
  fix is harder since we're not in a context where we can report errors.
  Really we should just declare up front what kind of field it is and
  inherit the right behaviour automagically, either duplicates disallowed
  or allowed and combined with mappend.

    M ./Distribution/ParseUtils.hs -3 +7

View patch online:
http://darcs.haskell.org/cabal/_darcs/patches/20080423201519-adfee-b64db9d504359a9f726c0e9a4b087b2b8436ba23.gz



More information about the cabal-devel mailing list