This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 08 Mar, 2021 1 commit
  2. 20 Jul, 2020 1 commit
  3. 18 Jun, 2020 1 commit
  4. 18 May, 2020 1 commit
    • Oleg Grenrus's avatar
      Make cabal-install compilable with NoImplicitPrelude · d4fd273b
      Oleg Grenrus authored
      I.e. find out where we don't yet
      used `Distribution.Client.Compat.Prelude`.
      
      - If the module is small I added direct `Prelude` imports.
      - Add Exception, deepseq stuff to Cabal Prelude
      - Add Parsec, Pretty and Verbosity to Client Prelude
      - use for, for_, traverse and traverse_ (removes need for Control.Monad)
      d4fd273b
  5. 12 Dec, 2019 1 commit
  6. 08 Nov, 2019 1 commit
  7. 02 Nov, 2019 1 commit
  8. 16 Dec, 2018 1 commit
    • Oleg Grenrus's avatar
      Introduce Distribution.Fields module namespace · 7150c6d2
      Oleg Grenrus authored
      Split fields related functionality out of `Distribution.Parsec`
      namespace which is not left only to handle "scalar" values.
      This separation highlights that we use `parsec` for *structure* (think
      JSON), and the *values* of the fields (think e.g. dates in JSON).
      
      - New top-level `Distribution.Fields` and `Distribution.Parsec` modules
        should include most things most people would need.
      - Also `Distribution.Pretty.Field` is moved to `Distribution.Fields.Pretty`,
        as now it has proper place.
      - The commit is moving things around and fixing compilation errors.
      - I fixed `cabal check` parse error printing as I was nearby.
      7150c6d2
  9. 28 Nov, 2018 1 commit
    • Oleg Grenrus's avatar
      Move ReadP out of Cabal (to cabal-install) · baf78ca2
      Oleg Grenrus authored
      - Distribution.Compat.ReadP to Distribution.Deprecated.ReadP
      - Distribution.Text to Distribution.Deprecated.Text
      - all Text instances needed by cabal-install to Deprecated.Text too
      - Distribution.ParseUtils to Distribution.Deprecated.ParseUtils
      - Remove deprecated Distribution.PrettyUtils
      - new Distribution.Text with
      
          display = prettyShow
          simpleParse = simpleParsec
      
        to not break too much stuff (Custom Setup.hs)
      - parseInstalledPackageInfo type signature changed to use
        `base` types
      
      This removes around 2k lines from Cabal the library.
      git diff --stat shows less, as files are moved (git is smart).
      Even so, total 300 lines removal at this point.
      baf78ca2
  10. 27 Sep, 2016 1 commit
    • Herbert Valerio Riedel's avatar
      Make `PackageName` type opaque (#3896) · dabd9d98
      Herbert Valerio Riedel authored
      When looking at heap-profiles of `cabal-install`, the `(:)` constructor
      stands out as the most-allocated constructor on the heap.
      
      Having to handle 10k+ package names contributes to the allocation
      numbers, especially on 64bit archs where ASCII `String`s have a 24 byte
      per character footprint.
      
      This commit is a preparatory commit to pave the way for changing
      `PackageName`'s internal representation to something like
      `ShortByteString` (which is essentially a thin wrapper around primitive
      `ByteArray#`s which themselves have have an overhead of 2 words + one
      byte per ASCII character rounded up to nearest word) which would allow
      to reduce the memory footprint by a full order of magnitude, as well as
      reduce pointer chasing and GC overhead.
      dabd9d98
  11. 26 Sep, 2016 1 commit
  12. 03 Aug, 2016 1 commit
  13. 26 Apr, 2016 1 commit
  14. 08 Sep, 2015 1 commit
  15. 09 Mar, 2015 1 commit
  16. 06 Mar, 2015 1 commit
  17. 09 Jan, 2015 1 commit
  18. 14 Apr, 2014 2 commits
  19. 12 Apr, 2014 1 commit
  20. 02 Apr, 2014 1 commit
    • Ian D. Bollinger's avatar
      Fix #1569. · 85fecab0
      Ian D. Bollinger authored
      * Change `guessPackageName` to translate arbitrary strings into valid
      package names.
      * Change type of `packageName` flag from String to PackageName and
      reject names that do not pass PackageName's corresponding parse
      function.
      85fecab0
  21. 22 Dec, 2013 1 commit
    • Brent Yorgey's avatar
      Compat version of readProcessWithExitCode · e2c7ce0f
      Brent Yorgey authored
      * Add a new module, Distribution.Client.Compat.Process, with a
        function readProcessWithExitCode.  Unlike the one from
        System.Process it always catches "does not exist" errors and turns
        them into ExitFailures.
      
      * Change all calls to readProcessWithExitCode to use the new version.
      
      * Fixes #1613.
      e2c7ce0f
  22. 23 Aug, 2013 1 commit
  23. 25 Apr, 2013 1 commit
  24. 12 Feb, 2013 1 commit
  25. 09 Feb, 2013 3 commits
  26. 08 Feb, 2013 1 commit
  27. 04 Jan, 2013 1 commit
  28. 28 Dec, 2012 1 commit
  29. 09 Dec, 2012 1 commit
  30. 05 Nov, 2012 1 commit
  31. 25 Oct, 2011 1 commit
  32. 04 Mar, 2011 1 commit
  33. 14 Jun, 2010 1 commit
  34. 10 Nov, 2009 1 commit
  35. 28 Oct, 2009 2 commits
  36. 11 Oct, 2009 1 commit