This project is mirrored from https://github.com/haskell/Cabal.
Pull mirroring updated .
- Jun 28, 2024
-
-
Marcin Szamotulski authored
`--use-unicode` is added to `cabal haddock` and `cabal haddock-project`. One cannot simply use `--haddock-option="--use-unicode"` because it makes haddock to fail when building indexes.
-
- May 30, 2024
-
-
Rodrigo Mesquita authored
We no longer define the `__HADDOCK_VERSION__` macro when invoking GHC through Haddock, since doing so essentially guarantees recompilation during documentation generation. We audited all uses of `__HADDOCK_VERSION__` in hackage, ensuring there was a reasonable path forward to migrate away from using `__HADDOCK_VERSION__` for each, while generating the same documentation as it did before. If you are a user of `__HADDOCK_VERSION__`, please take a look at the discussion in https://github.com/haskell/cabal/pull/9177 and reach out to us if your use case is not covered. Reverts the version-cpp flag introduced in the previous commit to avoid a workaround. Instead, we get rid of the problem (`__HADDOCK_VERSION__`) at its root. See the discussion in #9177
-
Finley McIlwaine authored
Haddock no longer writes compilation files by default, so we do not need to pass tmp dirs for `-hidir`, `-stubdir`, and `-odir` via `--optghc`. Indeed, we do not *want* to do so, since it results in recompilation for every invocation of Haddock via Cabal. This commit stops this from happening for haddock versions >= 2.28 (when Hi Haddock was introduced). This commit also stops the default definition of the `__HADDOCK_VERSION__` macro when invoking GHC through haddock. Since a very limited set of users may still depend on this macro, we introduce the `--haddock-version-cpp` flag and `haddock-version-cpp:` cabal.project field, which enable the definition of the `__HADDOCK_VERSION__` macro when invoking GHC through Haddock. This will almost guarantee recompilation during documentation generation due to the macro definition. This commit also renames the `--haddock-lib` flag to `--haddock-resources-dir` (and `haddock-lib:` cabal.project field to `haddock-resources-dir:`), and adds this flag to the users guide since it was missing an entry. This also allows us to add this field to `cabal-install:test:integration-tests2`, since it is no longer ambiguous with the `--lib` flag. This commit also causes `documentation: true` or `--enable-documentation` to imply `-haddock` for GHC. Also, since Haddock >= 2.29 is renaming `--lib` to `--resources-dir`, this commit switches the flag provided to Haddock using a backwards compatible condition based on the Haddock version. Adds a changelog entry.
-
- May 18, 2023
-
-
Colton Clemmer authored
* default to commented line for nix config * Fix whitespace * Remove vscode folder * Remove default config file for test * Remove test generated file * Add changelog * Add test for default config values * Remove config file * Remove parsing file * Add config file back for tests * Remove reference to default config to try to get the new test to pass * Rewrite test to be more verbose WIP * Stop testing for values and only test for whether it is commented or not * Fill out rest of tests WIP * Clean up --------- Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
- May 17, 2021
-
-
Emily Pillmore authored
-
- May 04, 2021
-
-
Emily Pillmore authored
* Restructures the `cabal init` command to fix historical issues. All flags are preserved. * Codebases for interactive and non-interactive flags are disentangled. * Data structures now exploit relevant stanza structure and formatters only care about stanza data * Heuristics and prompts have a pure and impure implementation. * Sets default behavior to be `--interactive` as opposed to `--non-interactive`. * Rewrites tests to achieve 98% coverage * Golden files now test every stanza individually * Every flag is covered by a unit test * Interactive, simple, and non-interactive workflows are covered.
-
- Jul 14, 2020
-
-
Oleg Grenrus authored
-
- May 07, 2020
-
-
- Apr 21, 2020
-
-
Matt Renaud authored
-
- Apr 13, 2020
-
-
Matt Renaud authored
The key item captured in this test is that when 'cabal init --libandexe' is run in an empty directory it will result in a dependency on the library from the executable in the form of 'build-depends = <package-name>' but with no version constraints since they are implied by the version of the current package.
-
- Apr 10, 2020
-
-
Matt Renaud authored
This matches what is produced by PrettyField, so that when we switch over the cabal file generation from manual formatting to PrettyField formatting we see the true diffs and less field indent line noise.
-
Matt Renaud authored
-
- Jun 19, 2011
-
-
Duncan Coutts authored
At the top level we now have cabal/ and cabal-install/
-
- May 05, 2011
-
-
Joel Stanley authored
This patch adds intrapackage dependency resolution so that components (libraries, exes, test suites) are build in the correct order. This mean it's now possible to have, e.g., executables that depend on other executables defined in the same package description: the build-tools namespace has been extended accordingly. Related to this change is the refactoring of the do-it-all preprocessSources function, formerly invoked by initialBuildSteps, into a a function preprocessComponent that is invoked when a component is being built. This lets us use executables defined in a package to be used as a custom preprocessor when building other components. Finally, a number of functions now operate on values of the sum type PackageDescription.Component rather than specifically operating on Library or Executable and so forth.
-
- Jan 14, 2011
-
-
ttuegel authored
-
- Jan 13, 2011
-
-
ttuegel authored
-
- Jan 10, 2011
-
-
ttuegel authored
This patch adds the 'testEnabled' field to TestSuite. It's undesirable to track build status information in the static package description, but there is no better solution at this time. This patch has the side-effect of fixing several TODOs in Distribution.Simple.Configure.
-
- Oct 25, 2010
-
-
Duncan Coutts authored
Should live in the ghc testsuite but no harm having it here too.
-
- Oct 16, 2010
-
-
Duncan Coutts authored
Still some other tests that need hooking up to this mechanism
-
Duncan Coutts authored
-
- Jun 29, 2010
-
-
ttuegel authored
Ticket #215 (Overhaul support for packages' tests). The update to the TestSuite parser which stopped disallowed configurations during parsing also broke the existing test suite with API changes.
-
- Jun 08, 2010
-
-
ttuegel authored
Ticket #215 (Overhaul support for packages' tests).
-
- May 26, 2010
-
-
ttuegel authored
Ticket #215 (Overhaul support for packages' tests). Parse and finalize a simple, dummy .cabal file containing a Test stanza. Compare with the PackageDescription it which should result from parsing.
-
- Jun 02, 2010
-
-
Duncan Coutts authored
The problem was that we do the QA check on using the new version range syntax after parsing. The new syntax allows ()'s but previously the code threw them away in the parser stage. We now retain them in the AST and deal with them appropriately. This now allows the QA check to be accurate and detect things like "build-depends: base (>= 4.2)".
-
- May 27, 2010
- Mar 21, 2010
-
-
Duncan Coutts authored
In case we've got a compiled Setup binary
-
- Mar 09, 2010
-
-
Gwern Branwen authored
-
Gwern Branwen authored
-
- Oct 06, 2009
-
-
Duncan Coutts authored
rolling back: Mon Oct 5 17:32:02 BST 2009 Stephen Blackheath <grossly.sensitive.stephen@blacksapphire.com> * Fix test case InternalLibrary4 on account of a change in Cabal's behaviour. M ./tests/PackageTests/BuildDeps/InternalLibrary4/Check.hs -5 +4
-
- Oct 05, 2009
-
-
StephenBlackheath authored
-
- Sep 20, 2009
-
-
Duncan Coutts authored
They all get squashed to ">1 && <1" which while canonical is not helpful.
-
- Sep 17, 2009
-
-
Duncan Coutts authored
-
Duncan Coutts authored
Now foldVersionRange gives a view with no syntactic sugar while foldVersionRange' gives a view with the syntactic sugar.
-
- Jun 08, 2009
-
-
Ian Lynagh authored
-
- Jun 01, 2009
-
-
StephenBlackheath authored
-
- May 26, 2009
-
-
StephenBlackheath authored
The purpose of these tests is mostly to pin down some existing behaviour to ensure it doesn't get broken by the ticket #89 changes.
-
- Dec 10, 2008
-
-
Duncan Coutts authored
-
Duncan Coutts authored
One property fails. The failure reveals that the VersionInterval type is not quite a canonical representation of the VersionRange semantics. This is because the lowest Version is [0] and not -infinity, so for example the intervals (.., 0] and [0,0] are equivalent.
-
- Dec 04, 2008
-
-
Duncan Coutts authored
For Functor, Monoid and Traversable.
-