aboutsummaryrefslogtreecommitdiff
path: root/src/CabalHelper/Compiletime/Cabal.hs
Commit message (Collapse)AuthorAgeFilesLines
* Fix Cabal version selection for build-type:CustomDaniel Gröber2020-05-021-2/+12
| | | | | | | | | | | | | | | | Previously we would pick up Stack's Cabal version with ghc-pkg on the global package-db. This however ignores that Stack also supports custom Setup.hs with the Cabal version from the snapshot instead. In cabal v2-build we have a similar problem. We used to assume that plan.json's cabal-lib-version is used uniformly across units but this is similarly untrue. To fix both of these we re-stage the cabal version query to after reconfiguring a unit, then we can just lookup the Cabal version in setup-config. Fixes #95
* Move CabalVersion and related types into a new moduleDaniel Gröber2020-05-021-39/+5
|
* Fix datestamp Cabal HEAD version being too longDaniel Gröber2020-04-181-14/+3
| | | | | | | Cabal's versionDigitParser limits the version nuber to nine digits, this used to not be checked for and used to just overflow the resulting Word. See 7d4eee68fcb3 ("Limit version number parts to be 9 digits")
* Revert "Fix Cabal version selection for Stack (esp. build-type:Custom)"Daniel Gröber2020-02-111-11/+2
| | | | This reverts commit 04c2d34f1874bc198288d33c784bc26f89280ee2.
* Fix Cabal version selection for Stack (esp. build-type:Custom)Daniel Gröber2020-01-111-2/+11
| | | | | | Previously we would pick up Stack's Cabal version with ghc-pkg on the global package-db. This however ignores that Stack also supports custom Setup.hs with the Cabal version from the snapshot instead.
* Change license to Apache2Daniel Gröber2019-09-291-11/+6
| | | | | | | | All contributors have agreed on public record at https://github.com/DanielG/cabal-helper/issues/76 Fixes #76
* Add support for symlink farming as a workaround for StackDaniel Gröber2019-09-291-0/+9
| | | | | | | | We want to be able to have the build tool use exactly the compiler and related executables we choose. Stack doesn't really like that mode of operation and insists on getting everything from PATH itself so this commit adds support for creating a temporary symlink farm to convince Stack to use the executables we want it to use.
* Fix some warningsDaniel Gröber2019-09-171-1/+0
|
* Allow passing override-env to process functionsDaniel Gröber2019-09-171-3/+3
| | | | | Unfortunately we need this to pass a custom GHC executable path to stack, since it doesn't have an option to override it on the commandline (yet?).
* Flesh out project discovery APIDaniel Gröber2019-09-171-4/+13
|
* Make compilerVersion accessor project-scope for V1 projectsDaniel Gröber2019-04-011-3/+21
|
* Fix datecode padding in unpackCabalHEADDaniel Gröber2019-04-011-1/+2
|
* Don't insist on an odd major version in unpackCabalHEADDaniel Gröber2019-04-011-3/+4
| | | | Super-major version bumps like Cabal-2.5.0.0 -> Cabal-3.0.0.0 violate that rule.
* Fix replaceVersionDecl for Cabal HEADDaniel Gröber2019-03-311-1/+3
| | | | It breaks when there's a `cabal-version:` delaration in the file.
* Make Cabal-HEAD lib v2-build cachableDaniel Gröber2019-02-141-16/+53
|
* Shortcut helper compilation when Cabal version is already availableDaniel Gröber2019-02-091-2/+5
| | | | | This is mostly an optimization for Nix which already sets up the environment correctly, so we should reward its users :)
* Fix module descriptionDaniel Gröber2019-01-301-1/+1
| | | | [ci skip]
* Fix cabal-file path for multi package v2 projectsDaniel Gröber2019-01-221-1/+1
|
* Refactor Compile (for v2-install)Daniel Gröber2019-01-221-22/+61
|
* Formatting/indent changesDaniel Gröber2019-01-221-21/+19
| | | | [ci skip]
* Split up Compile.hs into multiple modulesDaniel Gröber2018-10-271-0/+180