Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Mar 17, 2016
    • Mikhail Glushenkov's avatar
      Whitespace. · 348fdad7
      Mikhail Glushenkov authored
      348fdad7
    • Duncan Coutts's avatar
      Add project config round trip QC tests · 3d96d226
      Duncan Coutts authored and Mikhail Glushenkov's avatar Mikhail Glushenkov committed
      Two kinds of round-trip test:
       * type conversion ProjectConfig -> LegcyProjectConfig and back
       * ProjectConfig -> print -> parse
      The latter goes out to the config file format and back.
      
      These tests uncovered a number of issues in our general config code.
      
      (cherry picked from commit e36c0e7e)
      3d96d226
    • Duncan Coutts's avatar
      Split FlagAssignment printer/parser out of UserConstraint ones · d3a5d903
      Duncan Coutts authored and Mikhail Glushenkov's avatar Mikhail Glushenkov committed
      We want to reuse the FlagAssignment printer/parser for the config files.
      
      (cherry picked from commit d0fb249e)
      d3a5d903
    • Duncan Coutts's avatar
      Add a couple glob utils · 5f6614a6
      Duncan Coutts authored and Mikhail Glushenkov's avatar Mikhail Glushenkov committed
      One for testing if globs are trivial, as in they're constant strings
      without the possibility of matching more than one thing. This can help
      with making better error messages.
      
      Another util for matching file globs in the rebuild monad, and
      automatically monitoring the glob.
      
      (cherry picked from commit 4365bcb1)
      5f6614a6
    • Duncan Coutts's avatar
      Correct typos in the cli/config lenses · d3b07300
      Duncan Coutts authored and Mikhail Glushenkov's avatar Mikhail Glushenkov committed
      Getters and setters really need to match up.
      
      Detected by parse/print round trip QC tests.
      
      (cherry picked from commit a82af445)
      d3b07300
    • Duncan Coutts's avatar
      New module for new style project configuration files · 92f018c2
      Duncan Coutts authored and Mikhail Glushenkov's avatar Mikhail Glushenkov committed
      This defines the new cabal.project files and introduces the notion of a
      project root (and the logic for finding it). Also has support for
      implicit projects when no cabal.project file is defined.
      
      Supports both reading and writing project files or fragments. The
      printing & parsing round trips correctly. QC tests to follow.
      
      This is a key part of the new nix-local-build branch approach, based
      around projects with clear configuration state held in a project file
      (or extra files).
      
      This has support for file and dirs as packages within a project,
      including by glob. It supports both globs that much match a target, and
      optional globs that are allowed to match nothing. It has partial support
      for local tarball, remote http tarball and remote source repo packages.
      
      (cherry picked from commit 324b3240)
      92f018c2
    • Duncan Coutts's avatar
      Add new DistDirLayout module · fe3596b9
      Duncan Coutts authored and Mikhail Glushenkov's avatar Mikhail Glushenkov committed
      This describes in one place the layout of the new dist dir, as used by
      the nix-local-build branch. Also a similar approach to describing the
      layout of the user-wide cabal directory.
      
      The idea is that this centralises the description and makes it easier
      to change and handle systematically (e.g. we have problems currently
      with some user-wide files not being reolocatable).
      
      (cherry picked from commit 7907a55c)
      fe3596b9
    • Duncan Coutts's avatar
      New parse utils to help with subsections · 306210bc
      Duncan Coutts authored and Mikhail Glushenkov's avatar Mikhail Glushenkov committed
      The existing approach has been to parse top level fields and then
      separately parse each top level section, and similarly for pretty
      printing. A better approach is to follow the pattern for fields and have
      a section description. Then we just parse or print fields+sections in
      one call. And as a bonus, secitons can have subsections (and could even
      do so recursively).
      
      This patch just adds the new functionality. No existing config parsing
      is switched over.
      
      (cherry picked from commit 2f743b6d)
      306210bc
    • Duncan Coutts's avatar
      Refactor withRepoContext so it can takes args separately · c47fbe7c
      Duncan Coutts authored and Mikhail Glushenkov's avatar Mikhail Glushenkov committed
      withRepoContext keeps its current type (using GlobalFlags). Added
      withRepoContext' that takes all the args seprately. Better name
      suggestions welcome.
      
      (cherry picked from commit 7b280cdd)
      c47fbe7c
  2. Mar 16, 2016
  3. Mar 12, 2016
  4. Mar 09, 2016
  5. Mar 08, 2016
  6. Mar 07, 2016
  7. Mar 06, 2016
  8. Mar 05, 2016
  9. Mar 04, 2016
Loading