This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 06 May, 2008 4 commits
  2. 05 May, 2008 1 commit
    • Duncan Coutts's avatar
      Cope better with ghc bug #2201, display a better error message · 87b444ce
      Duncan Coutts authored
      Otherwise it can (and does) really confuse people.
      The problem is that the command $ ghc-pkg-6.9 describe '*' --user
      returns a non-zero exit code if the user package db is empty.
      ghc-pkg intends this exit code to tell us if the query returned
      any results (one can use more complex queries as tests) but Cabal
      interprets it as failure. Indeed we cannot distinguish it from
      any other kind of failure from ghc-pkg.
      87b444ce
  3. 04 May, 2008 3 commits
  4. 01 May, 2008 7 commits
  5. 30 Apr, 2008 1 commit
  6. 29 Apr, 2008 2 commits
    • Duncan Coutts's avatar
      Change handling of bool command line args to allow an unset state · fb993c2a
      Duncan Coutts authored
      For bool valued flags we were always producing the command line
      string corresponding to a false flag value, even if the flag was
      not set. For example we'd always get "--disable-shared".
      It is important for cabal-install to be able to take an empty set
      of flags, override a few flags and turn the flags back into
      command line strings without getting a lot of extra defaults.
      Partly this is because we have to work with older versions of the
      Cabal library command line which does not recognise the new options.
      fb993c2a
    • Duncan Coutts's avatar
      Remove the feature for highlighting the default cases in --help output · d49d15a7
      Duncan Coutts authored
      Turns out it doesn't help us much because in many cases the initial/default
      flags are actually empty so we cannot identify the default values.
      d49d15a7
  7. 28 Apr, 2008 2 commits
  8. 26 Apr, 2008 1 commit
    • nominolo@gmail.com's avatar
      Fix fix for #224. · 7e69b6f4
      nominolo@gmail.com authored
      Changing from list of Dependencies to Maps resulted in the wrong Monoid 
      instance being used.  I'd still like to be able to run a test suite on 
      this but that'd require a lot more work to do properly...
      7e69b6f4
  9. 23 Apr, 2008 5 commits
    • Duncan Coutts's avatar
      When multiple specifying list fields in the same section combine them · 48c8903b
      Duncan Coutts authored
      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.
      48c8903b
    • Duncan Coutts's avatar
      Normalise file names in warning messages · 9d3299ad
      Duncan Coutts authored
      We already do this for error messages.
      9d3299ad
    • Duncan Coutts's avatar
      Fix the check for -XFooBar ghc-options flags to be more permissive · eb148937
      Duncan Coutts authored
      Previously we rejected all such flags but that posed the problem that older
      versions of Cabal, like 1.1.6 did not understand new extensions so we
      could not actually follow the advice and use the extenion. So now we only
      warn about -X flags if they refer to old extensions that Cabal 1.1.6 knew
      about. If the .cabal file specifies cabal-version: >= 1.2 or similar
      (anything that excludes 1.1.6) then we warn about all -X flags.
      eb148937
    • Duncan Coutts's avatar
      Add checks for unknown OS Arch and Compiler names · 99ec2dca
      Duncan Coutts authored
      They're ok locally but for distribution they need to be known.
      99ec2dca
    • Duncan Coutts's avatar
      Package check now take a GenericPackageDescription · 87ec8824
      Duncan Coutts authored
      Unfortunately in some cases we only have a already-configured
      PackageDescription to we have to expose a checkConfiguredPackage.
      We should refactor things so that we keep all the information
      even in a configured PackageDescription.
      87ec8824
  10. 22 Apr, 2008 3 commits
  11. 20 Apr, 2008 2 commits
    • Duncan Coutts's avatar
      Don't nub extra-libs in unionBuildInfo · d9233d60
      Duncan Coutts authored
      It's possible that we sometimes need to list the same library
      more than once if there are circular symbol references.
      d9233d60
    • Duncan Coutts's avatar
      Fix unionBuildInfo · fd3d86e1
      Duncan Coutts authored
      Fix ticket #264 to use nub only on the fields which are treated as sets.
      Probably we should be using the right types and mappend for each field.
      Change to construct a new value from scratch rather than overriding one
      of the two args. This helps to make sure we're updating all the field
      as we get a warning if we miss any. Turns out we were missing the ghc
      profiling and shared libs options which meant they were getting dropped.
      That had the effect of ghc-prof-options: in .cabal files being ignored.
      Thanks to 'midfield' from #haskell for spotting this.
      fd3d86e1
  12. 15 Apr, 2008 2 commits
  13. 13 Apr, 2008 6 commits
  14. 17 Apr, 2008 1 commit
    • jpbernardy's avatar
      expose ghcOptions · d991f8e1
      jpbernardy authored
      This helps finding the options to pass to GHC API in various tools
      d991f8e1