This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 17 Dec, 2017 4 commits
    • Herbert Valerio Riedel's avatar
      Test for new defaulting-logic · 37230a6a
      Herbert Valerio Riedel authored
      This tweaks the existing `CustomPlain` test to test the legacy
      defaulting logic for the unconditionally `Custom` default.
      
      Morever, a new `SimpleDefault` test has been added which tests
      that `cabal-version:2.1` does indeed infer `build-type: Simple`
      when there is no `custom-setup` stanza defined.
      37230a6a
    • Herbert Valerio Riedel's avatar
      changelog entry for #4958 · 295793e4
      Herbert Valerio Riedel authored
      295793e4
    • Herbert Valerio Riedel's avatar
      Implement better defaulting for `build-type` · 9fb03d73
      Herbert Valerio Riedel authored
      This implements the following defaulting rules:
      
       * For `cabal-version:2.0` and below, default to the `Custom`
         build-type unconditionally (legacy defaulting)
      
       * Otherwise, if a `custom-setup` stanza is defined, default to
         the `Custom` build-type; else default to `Simple` build-type.
      
      This gets us better defaults for the two most popular use-cases, and
      which can be statically inferred by only looking at the `.cabal` file.
      
      This allows us to bring down the minimal (modern) trivial cabal
      package definition down to a single file with 4 lines:
      
          cabal-version: 2.1
          name: mu
          version: 0
          library
      
      NB: We don't need any `Setup.hs` file, as `cabal sdist` will magically
      generate one on the fly.
      9fb03d73
    • Herbert Valerio Riedel's avatar
  2. 16 Dec, 2017 2 commits
  3. 13 Dec, 2017 1 commit
  4. 12 Dec, 2017 3 commits
    • Oleg Grenrus's avatar
      Common stanzas · bfb1967c
      Oleg Grenrus authored
      - common stanzas can be include other common stanzas
      - `import: name1, name2` to import multiple stanzas
      - Parse common stanzas in the same pass with other sections.
      - Common stanzas have to be defined before use.
      - Also negative tests
      - Terse documentation, let's improve it as questions are asked
      
      - Edit gen-extra-source-files to include golden files
      - Amend elif warning to mention cabal-version: 2.2
      - In regression golden tests, include also warnings
      
      Note: ATM the common stanzas are completely handled inside parser,
      GenericPackageDescription doesn't know about them anymore.
      That can be changed, but the the flattening of
      GenericPackageDescription to PackageDescription may fail.
      I don't want to do that refactor now.
      bfb1967c
    • Mikhail Glushenkov's avatar
      Formatting. · f0d688a9
      Mikhail Glushenkov authored
      [ci skip]
      f0d688a9
    • Mikhail Glushenkov's avatar
      Temporarily pin pretty-show to 1.6.13. · e80e1a11
      Mikhail Glushenkov authored
      Should unbork the test suite.
      e80e1a11
  5. 11 Dec, 2017 4 commits
  6. 10 Dec, 2017 1 commit
    • Herbert Valerio Riedel's avatar
      Clarify documentation regarding ^>= operator · 4abf81f8
      Herbert Valerio Riedel authored
      This represents an incremental improvement over the current state.
      However, there's more work to be done in terms of restructuring/reordering
      to present the information in an easier to digest as well as apply the new
      facilities effectively. This future work will be tracked in #4944.
      
      [skip ci]
      4abf81f8
  7. 07 Dec, 2017 2 commits
  8. 06 Dec, 2017 4 commits
  9. 05 Dec, 2017 1 commit
  10. 04 Dec, 2017 12 commits
  11. 03 Dec, 2017 5 commits
  12. 02 Dec, 2017 1 commit