Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Aug 19, 2023
  2. 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
  3. Aug 12, 2023
  4. 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
  5. Aug 02, 2023
  6. Jul 31, 2023
  7. Jul 29, 2023
  8. Jul 27, 2023
  9. Jul 24, 2023
  10. 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>
  11. 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
    • 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
  12. Jul 16, 2023
  13. Jul 14, 2023
  14. Jul 13, 2023
  15. Jul 12, 2023
  16. Jul 11, 2023
Loading