This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 09 Jul, 2020 1 commit
  2. 27 Jun, 2020 1 commit
  3. 23 Jun, 2020 1 commit
    • Oleg Grenrus's avatar
      Resolve #6288 · e42e5462
      Oleg Grenrus authored
      - Add availableSince to language/extension fields
         - Also autogen-modules once we are on that.
      - Remove default-language check for cabal-version: 3.4
      
      We cannot make the field `uniqueFieldAlaDef`, as that would require
      specifying `default-language` in each subconditional.
      I leave it for https://github.com/haskell/cabal/issues/6925
      
      Note: the default language is whatever is the compiler's default.
      The GHC-8.10 default is its variant of Haskell2010
      with NondecreasingIndentation and without DatatypeContexts
      e42e5462
  4. 18 Jun, 2020 1 commit
  5. 12 Jun, 2020 1 commit
  6. 28 May, 2020 1 commit
  7. 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
  8. 15 May, 2020 1 commit
  9. 14 May, 2020 1 commit
  10. 12 May, 2020 2 commits
  11. 08 May, 2020 1 commit
  12. 07 May, 2020 1 commit
  13. 21 Apr, 2020 1 commit
    • Oleg Grenrus's avatar
      Rename Flag types · 7fcb2045
      Oleg Grenrus authored
      There was three Flag's. Now they are
      - `Flag` (cli parsing)
      - `PackageFlag`
      - `CompilerFlag`
      
      This allows wild-imports without `hiding (Flag)`, and make tags
      navigaton work!
      7fcb2045
  14. 13 Apr, 2020 1 commit
  15. 09 Apr, 2020 1 commit
  16. 04 Apr, 2020 1 commit
  17. 25 Mar, 2020 1 commit
  18. 20 Mar, 2020 2 commits
  19. 16 Mar, 2020 2 commits
    • Oleg Grenrus's avatar
      Disallow wildcards and operators when spec is old · 2afbd0e1
      Oleg Grenrus authored
      Do this already in the Parsec instance parser.
      This allows removing checks from `D.PD.Check`.
      Later this would also allow removing non-relevant
      constructors from `VersionRange`, allowing easier testing.
      
      This change causes 10% slowdown: from
      
      ```
      135768 files processed
        7350 files contained warnings
      113156 files have check warnings
           0 files failed to parse
      
      120.901201s elapsed
      117.640431s elapsed
      119.663620s elapsed
      119.454329s elapsed
      119.785214s elapsed
      ```
      
      to
      
      ```
      135768 files processed
       31912 files contained warnings
      113109 files have check warnings
           0 files failed to parse
      
      130.969593s elapsed
      132.016403s elapsed
      134.214536s elapsed
      128.753382s elapsed
      131.503804s elapsed
      ```
      
      I hope the slowdown is acceptable, and I have an idea which may mitigate
      this. I'll try out it after I done further refactorings.
      
      Note how (parser) warnings grew by a factor. There are plenty of (old)
      files on Hackage, which don't use correct cabal-version.  For that
      reason we only issue warnings, and not fail.  Quirks approach won't
      scale for these. In comparison, there are even more files
      with check warnings
      2afbd0e1
    • Oleg Grenrus's avatar
      Add Quirk for single invalid UTF8 file. · e4f3a7c4
      Oleg Grenrus authored
      Partially fixes https://github.com/haskell/cabal/issues/6587
      For local files, there might be invalid UTF8; but if
      file comes from Hackage, we can assume they are valid UTF8.
      e4f3a7c4
  20. 22 Feb, 2020 1 commit
  21. 23 Dec, 2019 1 commit
  22. 12 Dec, 2019 2 commits
  23. 11 Dec, 2019 1 commit
  24. 28 Nov, 2019 1 commit
  25. 27 Nov, 2019 1 commit
    • Herbert Valerio Riedel's avatar
      Implement {cmm.asm}-{options,sources} for real · a41ce05a
      Herbert Valerio Riedel authored
      While those buildinfo fields were added to the parser some time
      ago via 57d7f28e and
      4a287659 that work was never completed
      by implementing the necessary build/sdist logic in Cabal.
      
      This commit remedies this oversight by implementing and wiring up the
      missing build logic.
      
      *WARNING* this commit is still very WIP; ASM works mostly; C--
                support is still incomplete
      a41ce05a
  26. 08 Nov, 2019 1 commit
  27. 02 Nov, 2019 1 commit
  28. 24 Sep, 2019 3 commits
    • Oleg Grenrus's avatar
      adaaae1d
    • Oleg Grenrus's avatar
      Add Distribution.Compat.MD5 · 76ce99ad
      Oleg Grenrus authored
      76ce99ad
    • Oleg Grenrus's avatar
      cabal check: cpp-options allows only -D and -U options · a2f43f3e
      Oleg Grenrus authored
      Before:
      
      130113 files processed
      7304 have lexer/parser warnings
      332 build impossible
      9742 build warning
      49779 build dist suspicious
      38666 build dist suspicious warning
      11834 build dist inexcusable
      
      After:
      
      130113 files processed
      7304 have lexer/parser warnings
      332 build impossible
      10063 build warning
      49779 build dist suspicious
      38666 build dist suspicious warning
      11834 build dist inexcusable
      
      i.e. 321 build warnings on all Hackage
      
      Examples:
      
      NO_DEBUG_MODE                       -- forgotten -D?
      -traditional                        -- doesn't work, nor needed
      -fallow-undecidable-instances       -- wrong -options?
      -fno-exceptions
      -Wall
      -Werror
      --include=include/config.h          -- doesn't work
      -maes                               -- cpp is not C++ ?
      -mpclmul
      -mssse3
      a2f43f3e
  29. 08 Sep, 2019 1 commit
    • Sebastian Graf's avatar
      Remove dead code · cb8b7d7a
      Sebastian Graf authored
      This would trip up the improved pattern match checker from [!963](ghc/ghc!963).
      
      The removed code is related to maintaining the round-trip property, so
      should be re-introduced at some point. This is tracked in #6193.
      cb8b7d7a
  30. 20 Jun, 2019 1 commit
  31. 18 Jun, 2019 1 commit
  32. 26 May, 2019 1 commit
  33. 08 May, 2019 1 commit
    • Oleg Grenrus's avatar
      Add autogen-includes field · 7e27ae7c
      Oleg Grenrus authored
      autogen-includes aren't searched nor packages by `sdist`.
      
      This is relatively small code patch, but there are
      - change in file-format
      - short documentation of the field
      - `cabal check`
      - test-suite noise due new field in `BuildInfo`
      7e27ae7c
  34. 03 May, 2019 1 commit