Rename haskellPackages -> basePackages (#77)

* Rename haskellPackages -> basePackages

* Typo
This commit is contained in:
Sridhar Ratnakumar 2023-02-09 20:05:44 -05:00 committed by GitHub
parent 4caada3794
commit 026acf572f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@
- API changes
- #37: Group `buildTools` (renamed to `tools`), `hlsCheck` and `hlintCheck` under the `devShell` submodule option; and allow disabling them all using `devShell.enable = false;` (useful if you want haskell-flake to produce just the package outputs).
- #64: Remove hlintCheck (use [treefmt-nix](https://github.com/numtide/treefmt-nix#flake-parts) instead)
- #52: Expose the final package set (API provisional)
- #52: Expose the final package set as `finalPackages`. Rename `haskellPackages`, accordingly, to `basePackages`. Overlays are applied on top of `basePackage` -- using `source-overrides`, `overrides`, `packages` in that order -- to produce `finalPackages`.
## 0.1.0

View File

@ -77,7 +77,7 @@ in
./haskell-project.nix
{
options = {
haskellPackages = mkOption {
basePackages = mkOption {
type = types.attrsOf raw;
description = ''
Which Haskell package set / compiler to use.
@ -144,7 +144,7 @@ in
type = types.attrsOf raw;
readOnly = true;
description = ''
The final package set, based `haskellPackages` plus
The final package set, based on `basePackages` plus
the additions and overrides specified in the other options.
'';
};

View File

@ -68,7 +68,7 @@ in
};
in
{
finalPackages = config.haskellPackages.extend config.finalOverlay;
finalPackages = config.basePackages.extend config.finalOverlay;
finalOverlay = lib.composeManyExtensions [
# The order here matters.