Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Sep 04, 2023
  2. Sep 03, 2023
  3. Sep 01, 2023
  4. Aug 31, 2023
  5. Aug 27, 2023
  6. Aug 26, 2023
  7. Aug 24, 2023
  8. Aug 21, 2023
  9. Aug 20, 2023
  10. Aug 19, 2023
  11. Aug 17, 2023
    • Suganya Raju's avatar
      Successive Cabal Package Errors (#9162) · f465da4d
      Suganya Raju authored
      * Cabal Package Exceptions
      
      * Accepting new format of output with error codes
      
      * Reverting the changes to new error output
      
      * Rebasing branch Subsequent Cabal Package errors
      
      * Added setup-explicit-fail.out
      
      * Delete setup-explicit-fail.out
      
      * Accepting new output with error codes
      
      * Changed to "GetProgramInvocationException" and "SanityCheckForEnableComponents"
      
      * Going back to former die' call in `getProgramInvocationOutout`  function to check on the failing CI test
      
      * Accepted new error output, included cabalexception in handler
      
      * Error code rectification
      
      * Added a handler condition for VerboseException CabalException in `annotaeFailure` function
      
      * Leaving "GetProgramInvocationException" unmodified
      
      * Incorporated review comments
      
      * Updated "nor" in AutoGenModule test case
      
      * Updated "AutogenExposeOther" test case which was dependent on this "nor" change
      f465da4d
  12. Aug 12, 2023
  13. Aug 10, 2023
    • Andrea Bedini's avatar
      Add alex to build-tool-depends remove separate code gen (#8980) · 0ab5571e
      Andrea Bedini authored
      * Add alex to build-tool-depends and remove separate code gen
      
      - Pass latin-1 encoding is passed as input pragma
      - Cabal hard-codes -g for alex so we don't need to worry about --ghc
      - Rework bootstrap, adding per-component building
      - Update bootstrap plans
      
      * [bootstrap] warn the user if cabal config is not found
      
      * [bootstrap] regenerate bootstrap plans once more
      
      * [bootstrap] regenerate bootstrap files after #9139
      0ab5571e
  14. Aug 02, 2023
  15. Jul 31, 2023
    • f-a's avatar
      Do not ask overwrite questions for empty dirs (#9155) · 9fe1ac82
      f-a authored
      * Do not ask overwrite questions for empty dirs
      
      See #9150, blank projects need not to ask permission to
      overwrite files.
      
      * Fix tests
      
      "test-dir" [] are the mock calls to `getPackageDir` and `listDirectory`
      9fe1ac82
    • kristenk's avatar
      Remove special case for running solver with no targets · e0d283ba
      kristenk authored
      The TODO deleted in 4d3f7b5e suggests that the
      special case was only needed for the top-down solver, which has been removed.
      e0d283ba
    • kristenk's avatar
      Combine non-installable and non-upgradable package lists (fixes #8581) · 9adf58c2
      kristenk authored
      This commit continues the work in b016e597 to
      combine the lists of non-installable and non-upgradable packages. When a package
      is in the list, it means that the solver will only consider installed instances
      of that package. This commit renames the list from "non-upgradable" to
      "non-reinstallable" to clarify that the packages cannot be upgraded or
      downgraded. There should be no change in behavior, except for the wording of
      solver error messages.
      9adf58c2
  16. Jul 29, 2023
  17. Jul 27, 2023
  18. Jul 24, 2023
  19. Jul 20, 2023
    • Suganya Raju's avatar
      Cabal Error Refactor (#9018) · 667be468
      Suganya Raju authored
      
      * I have added a function "dieWithException" which will replace the die' calls and throws Error types as exception.
      CabalException will hold all ErrorTypes, types will be incrementally added per module.
      The VerboseException a will have CabalException and cabalInstallException variously in the a position
      
      Utils.hs
      1. Creation of Error data types
      2. Diewithexception and exceptionCode function
      3. Instance for VerboseException
      
      Bench.hs and install.hs
      1. Replaced die' call sites with dieWithException
      
      Right now I have only added errors from two modules Distribtuion/Simple/Bench and Distribution/Simple/Install. Error types will be added incrementally.
      
      * Codebase is formatted with fourmolu and compiled without warnings.
      
      * Enabled fourmolu action
      
      * Running fourmolu through github action as the previous ones failed.
      
      * Function `exceptionWithMetadata` and constructors for each exception type
      
      * I have added a function "dieWithException" which will replace the die' calls and throws Error types as exception.
      CabalException will hold all ErrorTypes, types will be incrementally added per module.
      The VerboseException a will have CabalException and cabalInstallException variously in the a position
      
      Utils.hs
      1. Creation of Error data types
      2. Diewithexception and exceptionCode function
      3. Instance for VerboseException
      
      Bench.hs and install.hs
      1. Replaced die' call sites with dieWithException
      
      Right now I have only added errors from two modules Distribtuion/Simple/Bench and Distribution/Simple/Install. Error types will be added incrementally.
      
      * Codebase is formatted with fourmolu and compiled without warnings.
      
      * Enabled fourmolu action
      
      * Running fourmolu through github action as the previous ones failed.
      
      * Function `exceptionWithMetadata` and constructors for each exception type
      
      * Updated changelog
      
      * PatternMatching cases of diewithexception and displayexception reduced
      
      * Delete fourmolu.yaml
      
      This file is redundant.
      
      * Delete settings.json
      
      This file is redundant.
      
      * Replaced die' calls for modules srcDist.hs and HcPkg.hs
      
      * Replaced die' calls in modules `build.hs`,`Haddock.hs` and `Program.hs`
      
      * Replaced die' calls in modules `Build.hs`, `Haddock.hs` and `Program.hs`
      
      * Replaced die' calls in modules `GHCJS.hs`, `HaskellSuite.hs` and `BuildPaths.hs`
      
      * Formatted the codebase with Fourmolu
      
      * Accepted the new output with error codes and adding the file relevant to the test
      
      * Changes in `Utils.hs` and `Errors.hs` to reflect the new error codes
      
      * Keeping rip intact
      
      * test changes
      
      * CallStack unmarked from the error output
      
      * callstack unmarked from output
      
      * unmarked callstack in test output
      
      * Format the codebase with fourmolu
      
      * Changed to Error identifier to "Cabal-"
      
      * Updated Constructors as per review comments
      
      * Rectifying Hlint warning
      
      ---------
      
      Co-authored-by: default avatarGershom Bazerman <gershom@arista.com>
      667be468
  20. Jul 18, 2023
    • mergify[bot]'s avatar
      Merge pull request #9139 from bgamari/wip/jsem · baa767a9
      mergify[bot] authored
      Add support for using GHC's -jsem option
      baa767a9
    • Matthew Pickering's avatar
      Add support for using GHC's -jsem option · 0a1c167a
      Matthew Pickering authored and Ben Gamari's avatar Ben Gamari committed
      * The top-level user interface to enable the use of the semaphore is the
        `--semaphore` flag. If you pass `-j4 --semaphore` then cabal will
        create a semaphore with 4 slots which is passed to ghc using the
        `-jsem` option so that all GHC processes coordinate to use 4
        capabilities.
      
        - The semaphore logic is provided by a new package `semaphore-compat`
          which provides a cross-platform abstraction for semaphores.
      
      * The low level `./Setup.hs build` interface accepts the `--semaphore
        <SEMAPHORE>` option, which can be used to directly pass the semaphore
        you require to the Setup script.
      0a1c167a
    • Hécate Moonlight's avatar
      Fix tests · 249374d1
      Hécate Moonlight authored and Artem Pelenitsyn's avatar Artem Pelenitsyn committed
      249374d1
    • Ben Gamari's avatar
      cabal-install: Fix non-reinstallable package set · 2e32a44f
      Ben Gamari authored and Artem Pelenitsyn's avatar Artem Pelenitsyn committed
      In #9064 we discovered that `ghc-boot` was added to the
      non-reinstallable package set due to #8051 despite there being no
      reason why it can't be built from its source distribution. This
      revealed the fact that there is quite some ambiguity around what
      constitutes a non-reinstallable package.
      
      In #9064 we worked out a hopefully-more-clear picture of
      non-reinstallability. Here we update the commentary to describe this
      concept and update the lists to reflect the new definition.
      
      Closes #9064.
      2e32a44f
    • Artem Pelenitsyn's avatar
      Mergify: add no-rebase rule · 6af0c085
      Artem Pelenitsyn authored
      If a pull request gets the "merge+no rebase" label, it' will be merged directly to master without a rebase/squash or queue. This can be useful in cases when contributors don't allow updating their branches.
      6af0c085
    • Phil de Joux's avatar
      Follow hlint suggestion: redundant where · 20c480a6
      Phil de Joux authored and Artem Pelenitsyn's avatar Artem Pelenitsyn committed
      20c480a6
  21. Jul 16, 2023
Loading