This project is mirrored from https://github.com/haskell/Cabal.
Pull mirroring updated .
- Nov 13, 2023
-
-
f-a authored
* Fix Semigroup target instance When two target names are the same, `mappend`ing them should not error but just pick the first name. * Add `desugarBuildToolSimple` * Reimplement cabal check * Reorder test output * Fix autogen modules tests .cabal files * Add a number of tests * Add test for #7423 i.e. Do not warn on -O2 if under off-by-default package configuration flag conditional. * Add a regression for: * Add another -WErrr test This is to make sure we do *not* report it if it is under a user, off-by-default flag. * Add test for non manual user flags. * Add “absolute path in extra-lib-dirs” test * Add if/else test * Add “dircheck on abspath” check * Add Package version internal test * Add PackageVersionsStraddle test * Add changelog for #8427 * Integrate various reviews * Integrate Artem’s review (review) Clarify `combineNames` documentation By explaining the way it operates (working if the two names are equal or one is empty) and renaming the function from `combineName` to `combineNames`. (review) Use guards instead of if/then/else (review) Match inside argument list (review) Replace “white” with “allow” (review) Fix typo in comment (review) Fix typo in Check module documentation (review) Harmonise indentation for `data` decls First field goes in a new line than the data constructor, so we have more space. (review) Rename `Prim` module to `Types` (review) Add checkPackageFilesGPD `checkPackageFiles` — which works on PD — was used to perform IO. We introduce a function that does the same thing but works on GPD (which is more principled). `checkPackageFiles` cannot just be removed, since it is part of the interface of Distribution.PackageDescription.Check. Deprecation can be planned once “new check” is up and running. * Integrate Andreas’ review (review) Add named section to missing upper bound check “miss upper bound” checks will now list target type and name (“On executable 'myexe', these packages miss upper bounds”) for easier fixing by the user. (review) remove `cabal gen-bounds` suggestion Reasonable as `cabal gen-bounds` is stricter than `cabal check`, see https://github.com/haskell/cabal/pull/8427#issuecomment-1446712486 Once `gen-bounds` behaves in line with `check` we can readd the suggestion. (review) Do not warn on shared bounds When a target which depends on an internal library shares some dependencies with the latter, do not warn on upper bounds. An example is clearer library build-depends: text < 5 ⁝ build-depends: myPackage, ← no warning, internal text, ← no warning, shared bound monadacme ← warning! * Integrate Artem’s review /II (review) Split Check.hs Check.hs has been split in multiple file, each une sub 1000 lines: Check 857 lines Check.Common 147 lines Check.Conditional 204 lines Check.Monad 352 lines Check.Paths 387 lines Check.Target 765 lines Check.Warning 865 lines Migration guide: - Check GPD/PD checks plus work-tree checks. - Check.Common common types and functions that are *not* part of monadic checking setup. - Check.Conditional checks on CondTree and related matter (variables, duplicate modules). - Check.Monad Backbone of the checks, monadic inter- face and related functions. - Check.Paths Checks on files, directories, globs. - Check.Target Checks on realised targets (libraries, executables, benchmarks, testsuites). - Check.Warning Datatypes and strings for warnings and severities. (review) remove useless section header (review) Fix typo (review) Add warnings documentation (list) For each warning, we document constructor/brief description in the manual. This might not be much useful as not but it will come handy when introducing `--ignore=WARN` and similar flags. * (review Andreas) Clarify CheckExplanation comment Whoever modifies `CheckExplanation` data constructors needs to be aware that the documentation in doc/cabal-commands.rst has to be updated too. * Move internal Check modules to `other-modules` No need to expose Distribution.PackageDescription.Check.* to the world. API for checking, for cabal-install and other tools, should be in Distribution.PackageDescription.Check. * Make fourmolu happy Cabal codebase has now a formatter/style standard (see #8950). “Ravioli ravioli, give me the formuoli” * Do not check for OptO in scripts See #8963 for reason and clarification requests. * Remove useless PackageId parameter It is now in the Reader part of CheckM monad. * Do not check PVP on internal targets Internal: testsuite, benchmark. See #8361. * Make hlint happy * Fix #9122 When checking internal version ranges, we need to make sure we are not mistaking a libraries with the same name but from different packages. See #9132. * Fix grammar neither…nor, completing what done in #9162 * Integrate Brandon’s review: grammar * Remove unnecessary `-fvia-C` check Brandon’s review/II. --------- Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
Athas authored
* Add a 'cabal path' command. * Formatting fix. * Another formatting fix. * Categorise "cabal path" as global command. * Allow individual paths to be printed. * Less duplication. * Add config-file to "cabal path". * Use sum type instead of strings. * cabal path: support --installdir. * Add documentation. * Better text. * Formatting. * Add some tests. * Improve tests. * Add changelog entry. * Mention "cabal path" in directory documentation. --------- Co-authored-by:
Artem Pelenitsyn <a.pelenitsyn@gmail.com>
-
- Nov 12, 2023
-
-
mergify[bot] authored
Add test requirement to PR template
-
f-a authored
Adding test becomes a checkmark instead of “bonus points”.
-
- Nov 11, 2023
-
-
mergify[bot] authored
Document --profiling-detail in setup-commands.
-
Andreas Klebinger authored
Fixes #9182
-
Hécate Moonlight authored
* Use PackageInfo for cabal-install version number * Use Paths_cabal_install instead * Adjust documentation --------- Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
- Nov 10, 2023
-
-
mergify[bot] authored
Add dependencies used by `PackageTests` to exe:cabal-tests
-
The runner allows the tests to use extra dependencies and the custom Prelude from 'cabal-testsuite'. However, if the tests use a dependency, say 'directory', and there are two packages with the same unit id available in the store, the test fails since it doesn't know which one to pick. By including an extra dependency to directory, we force the test runner to use a specific version directory, fixing the test failure.
-
mergify[bot] authored
Require version 3,11 of Cabal to support --semaphore flag
-
Matthew Pickering authored
Fixes #9197
-
mergify[bot] authored
Fix AutogenModulesToggling test
-
Matthew Pickering authored
By converting this to a setupTest we use the in-tree Cabal library rather than relying on a proxy of the GHC version to provide the right Cabal library version. Supersedes #9398
-
- Nov 09, 2023
-
-
mergify[bot] authored
Note how to do "not equal" with constraints
-
Javier Sagredo authored
Co-authored-by:
Javier Sagredo <jasataco@gmail.com> Co-authored-by:
Andrea Bedini <andrea.bedini@tweag.io> Co-authored-by:
Andrea Bedini <andrea@andreabedini.com>
-
- Nov 08, 2023
-
-
mergify[bot] authored
Add reinstall test to LinkerOptions/NonignoredConfigs
-
mergify[bot] authored
Move documentation about how to use backpack
-
BinderDavid authored
-
BinderDavid authored
-
- Nov 07, 2023
-
-
mergify[bot] authored
Do not run CI for documentation changes
-
BinderDavid authored
The github workflows are not run if the changes are completely contained within the doc/ subdirectory. The only exception is the users-guide.yml github action.
-
Phil de Joux authored
-
Phil de Joux authored
-
Phil de Joux authored
Co-authored-by:
Artem Pelenitsyn <a.pelenitsyn@gmail.com>
-
Phil de Joux authored
-
- Nov 06, 2023
-
-
Phil de Joux authored
-
Phil de Joux authored
-
mergify[bot] authored
Add instance Ord for Field, FieldLine, SectionArg and Name
-
- Nov 05, 2023
-
-
Bodigrim authored
-
mergify[bot] authored
Restructure user guide into top-level guides, reference and explanation parts
-
Malte Neuss authored
-
Malte Neuss authored
The goal is for users to easier find pages for typical problems through search engines and page navigation. - The top-level layout is based on the popular documentation structure by https://documentation.divio.com/ to give a clear structure to users and future documentation contributors: * Guides: Present a solution to a single, atomic, typical user problem. * Reference: Describe user API (CLI fields, syntax etc) with technical rigour and completeness. * Explanation: Discuss background information, scope, design decisions etc. - Move existing documentation roughly into these categories with minimal editing as the basis for further editing. - Rename guide titles to mention how-to for improving SEO. - Rename some files to improve SEO since that name becomes part of the URL (often called slug). Important page keywords should appear in the slug as well to make pages rank higher in search engines.
-
- Nov 04, 2023
-
-
mergify[bot] authored
Use the newer haskell-actions organisation
-
Andrea Bedini authored
* Revert #3639 (Don't pass -package-db and -package flags to --abi-hash) With ghc>=9.6 `ghc --abi-hash` initialises the plugins so it will fail if a cabal file specifies `ghc-options: -fplugin=Foo`. Closes: #9375 * Also revert in GHC.hs --------- Co-authored-by:
Hamish Mackenzie <Hamish.K.Mackenzie@gmail.com> Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
- Nov 03, 2023
-
-
Jens Petersen authored
update GH validate workflow to 9.2.8, 9.4.7, 9.6.3
-
Jens Petersen authored
-
- Nov 02, 2023
-
-
mergify[bot] authored
Bump dependencies for GHC 9.8
-
Phil de Joux authored
-
andreas.abel authored
-
andreas.abel authored
-