Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. May 18, 2023
  2. May 17, 2021
  3. May 04, 2021
    • Emily Pillmore's avatar
      Rewrite `cabal init` command · 10687555
      Emily Pillmore authored
      * Restructures the `cabal init` command to fix historical
        issues. All flags are preserved.
        * Codebases for interactive and non-interactive flags
          are disentangled.
        * Data structures now exploit relevant stanza structure
          and formatters only care about stanza data
        * Heuristics and prompts have a pure and impure implementation.
      
      * Sets default behavior to be `--interactive` as opposed to
        `--non-interactive`.
      
      * Rewrites tests to achieve 98% coverage
        * Golden files now test every stanza individually
        * Every flag is covered by a unit test
        * Interactive, simple, and non-interactive workflows are
          covered.
      10687555
  4. Jul 14, 2020
  5. May 07, 2020
  6. Apr 21, 2020
  7. Apr 13, 2020
    • Matt Renaud's avatar
      Add cabal init golden test exercise --libandexe behaviour. · 17733f64
      Matt Renaud authored
      The key item captured in this test is that when 'cabal init --libandexe' is run
      in an empty directory it will result in a dependency on the library from the
      executable in the form of 'build-depends = <package-name>' but with no version
      constraints since they are implied by the version of the current package.
      17733f64
  8. Apr 10, 2020
  9. Jun 19, 2011
  10. May 05, 2011
    • Joel Stanley's avatar
      intrapackage-deps-and-per-component-preprocessing · 2e348126
      Joel Stanley authored
      This patch adds intrapackage dependency resolution so that components
      (libraries, exes, test suites) are build in the correct order.  This mean it's
      now possible to have, e.g., executables that depend on other executables defined
      in the same package description: the build-tools namespace has been extended
      accordingly.
        
      Related to this change is the refactoring of the do-it-all preprocessSources
      function, formerly invoked by initialBuildSteps, into a a function
      preprocessComponent that is invoked when a component is being built.  This lets
      us use executables defined in a package to be used as a custom preprocessor when
      building other components.
        
      Finally, a number of functions now operate on values of the sum type
      PackageDescription.Component rather than specifically operating on Library or
      Executable and so forth.
      2e348126
  11. Jan 14, 2011
  12. Jan 13, 2011
  13. Jan 10, 2011
    • ttuegel's avatar
      Tracking enabled/disabled TestSuites in PackageDescription. · f0a2d5e3
      ttuegel authored
      This patch adds the 'testEnabled' field to TestSuite. It's 
      undesirable to track build status information in the static package 
      description, but there is no better solution at this time. This 
      patch has the side-effect of fixing several TODOs in 
      Distribution.Simple.Configure.
      f0a2d5e3
  14. Oct 25, 2010
  15. Oct 16, 2010
  16. Jun 29, 2010
  17. Jun 08, 2010
  18. May 26, 2010
    • ttuegel's avatar
      Testsuite for Test stanza parsing · 35c5c46b
      ttuegel authored
      Ticket #215 (Overhaul support for packages' tests). Parse and
      finalize a simple, dummy .cabal file containing a Test stanza.
      Compare with the PackageDescription it which should result
      from parsing.
      35c5c46b
  19. Jun 02, 2010
    • Duncan Coutts's avatar
      Fix QA check on version range syntax to detect use of ()'s · f9a786c0
      Duncan Coutts authored
      The problem was that we do the QA check on using the new version range
      syntax after parsing. The new syntax allows ()'s but previously the
      code threw them away in the parser stage. We now retain them in the
      AST and deal with them appropriately. This now allows the QA check to
      be accurate and detect things like "build-depends: base (>= 4.2)".
      f9a786c0
  20. May 27, 2010
  21. Mar 21, 2010
  22. Mar 09, 2010
  23. Oct 06, 2009
    • Duncan Coutts's avatar
      I was wrong, the test was correct before. · 17c9c033
      Duncan Coutts authored
      rolling back:
      
      Mon Oct  5 17:32:02 BST 2009  Stephen Blackheath <grossly.sensitive.stephen@blacksapphire.com>
        * Fix test case InternalLibrary4 on account of a change in Cabal's behaviour.
      
          M ./tests/PackageTests/BuildDeps/InternalLibrary4/Check.hs -5 +4
      17c9c033
  24. Oct 05, 2009
  25. Sep 20, 2009
  26. Sep 17, 2009
  27. Jun 08, 2009
  28. Jun 01, 2009
  29. May 26, 2009
  30. Dec 10, 2008
  31. Dec 04, 2008
  32. Dec 03, 2008
  33. Oct 09, 2008
Loading