This project is mirrored from https://github.com/haskell/Cabal.git.
Pull mirroring updated .
- Jan 19, 2025
-
-
mergify[bot] authored
cabal-install 3.14.1.1 release notes
-
-
- Jan 18, 2025
-
-
mergify[bot] authored
Add `make style-todo` and fourmolu on off comments
-
- Jan 17, 2025
-
-
mergify[bot] authored
Only munge internal dependencies when printing when there is no explicit syntax
-
Matthew Pickering authored
* In `postProcessInternalDeps` the shadowing logic which existed prior to cabal format 3.4 is implemented in a post processing step. The algorithm there replaces any references to internal sublibraries with an explicit qualifier. For example if you write.. ``` library build-depends: foo library foo ... ``` this is reinterpreted as ``` library build-depends: mylib:foo library foo ... ``` * In `preProcessInternalDeps` the inverse transformation takes place, the goal is to replace `mylib:foo` with just `foo`. * Things go wrong if you are using version 3.0 for your cabal file because - In 3.0 the qualifier syntax is introduced so you can be expliciit about sublibrary dependencies - The shadowing semantics of non-qualified dependencies still exists. So the situation is that the user is explicit about the sublibrary ``` library library qux build-depends: mylib:{mylib, foo} library foo ``` 1. Post-process leaves this alone, the user is already explicit about depending on a sublibrary. 2. Pre-processing then rewrites `mylib:{mylib, foo}` into two dependencies, `mylib` and `foo` (no qualifier). 3. When parsed these are two separate dependencies rather than treated as one dependency, roundtrip test fails. Solution: Only perform the reverse transformation when the cabal library version is <= 3.0 and doesn't support the explicit syntax. Now what happens in these two situations: 1. ``` library build-depends: foo library foo ... ``` this is reinterpreted as ``` library build-depends: mylib:foo library foo ... ``` then printed and parsed exactly the same way. 2. Explicit syntax is parsed and printed without being munged (when supported) Note: Mixins only supported sublibrary qualifiers from 3.4 whilst dependencies supported this from 3.0, hence the lack of guard on the mixins case. Fixes #10283
-
Peter Becich authored
make formatting of `build-depends` consistent
-
Peter Becich authored
`*.cabal` files in this project presently have a mix of formatting of `build-depends`. Make them all consistent with: https://cabal.readthedocs.io/en/3.4/cabal-package.html No changes to any dependencies.
-
- Jan 16, 2025
-
-
mergify[bot] authored
Add a cabal target command
-
mergify[bot] authored
Fix file+noindex URI usage on Windows
-
Javier Sagredo authored
-
- Jan 15, 2025
-
-
mergify[bot] authored
Fix #9507 Describe accurately acceptable package names
-
Mike Pilgrem authored
Also extinguishes false positive in typo detection. Also aims to make corresponding changes to buildinfo-reference-generator, including the `Cabal-described` package. Adds `alphanumNotDigit` and now specifies `alphanum` by inserting digits into `alphanumNotDigit`. The description of `alpha-num-not-digit` is added to the introduction to the section on 'Non-terminals' to accommodate the limitation of buildinfo-reference-generator that only a single 'formula' can follow a single paragraph of narrative for each non-terminal production.
-
mergify[bot] authored
cabal-install.cabal: bump upper bound for random
-
Artem Pelenitsyn authored
-
mergify[bot] authored
Add support for Windows Aarch64
-
Serge S. Gulin authored
Co-authored-by:
Cheng Shao <terrorjack@type.dance>
-
- Jan 14, 2025
-
-
Phil de Joux authored
- Avoid list in the help - Use establishProjectBaseContext - Remove withContextAndSelectors - Use rebuildInstallPlan and resolveTargets - Extract targetForms - Satisfy hlint - Remove unnecessary do - Use safeHead - Call printPlanTargetForms for everything - Remove planTargetForms - Rework command description - Remove script as a possible TARGET form - Section help into; intro, targetFroms and ctypes - Use pretty printing for examples - Short form and long form - Add a changelog entry - Need nixStyleOptions for cabal-testsuite - unrecognized 'v2-target' option `-vverbose +markoutput +nowrap' - unrecognized 'v2-target' option `--builddir' - unrecognized 'v2-target' option `-j1' - Use notice so target forms are marked output - Add tests of target all, implicit and explicit - Add tests of all:exes and all:tests - Add test of all:benches - Add tests with --enable-tests and --enable-benchmarks - Warn that package targets display libs and exes - Add package target tests - Add path target tests - Add component target tests - Add c package with only a library - Add tests for missing ctypes - Exclude new-target from other commands - Move target command to configuration group - Add target command docs - Add cabal target docs - A significant change - Drop cleans from tests - Use noticeDoc to preserve indent - Satisfy fourmolu - Show the number of matches found matching query - Change synopsis of command, target verb - Remove disclosed, use show, WARN and NOTE - Typo command singular - Bring the command docs inline with --help docs - Remove disclosing from changelog - Only by default, not *only*. Co-Authored-By:
brandon s allbery kf8nh <allbery.b@gmail.com>
-
- Jan 13, 2025
-
-
mergify[bot] authored
Remove unused -XCPP
-
Phil de Joux authored
-
Phil de Joux authored
-
Phil de Joux authored
-
Phil de Joux authored
-
Phil de Joux authored
-
Phil de Joux authored
-
Phil de Joux authored
-
Phil de Joux authored
-
Phil de Joux authored
-
Phil de Joux authored
-
-
mergify[bot] authored
Fix file+noindex URI usage on Windows
-
Javier Sagredo authored
-
- Jan 12, 2025
-
-
mergify[bot] authored
Cabal: Honour -working-dir flag when running test executables
-
Matthew Pickering authored
A simple fix to run the test executable in the `-working-dir`. Fixes #10704
-
mergify[bot] authored
Suppress ghc-pkg warnings emitted when an empty packages is being registered
-
PHO authored
When a package contains a library that has no modules, "./Setup register" tries to register the library with fields "haddock-interfaces:" and "haddock-html:" pointing at non-existent files or directories, and "ghc-pkg register" warns about them. To suppress the warnings prevent these fields from being generated when there are no modules.
-
- Jan 11, 2025
-
-
mergify[bot] authored
Ignore haddocks
-
Phil de Joux authored
- Remove redundant -XCPP from Cabal-tree-diff - Remove redundant -XCPP from cabal-install - Remove redundant -XCPP from Cabal - Remove redundant -XCPP from Cabal-QuickCheck - Remove redundant -XCPP from Cabal-syntax - Remove redundant -XCPP from Cabal-tests - Remove redundant -XCPP from cabal-testsuite
-
- Jan 09, 2025
-
-
Phil de Joux authored
-
mergify[bot] authored
Follow HLint suggestion: use fewer imports
-