Skip to content

Conversation

@hamishmack
Copy link
Collaborator

shellFor has an argument allToolDeps that when set to true tells haskell.nix to include all the tool dependencies of all the packages in the shell. This does not work well for stackProject projects (since stackage includes a lot of packages). So it is disabled by default in modules/stack-project.nix.

This default is currently ignored if shellFor is called directly.

This change ensures that shellFor respects the defaults and any shell arguments passed to the project. As a result, project.shell and project.shellFor {} will now behave consistently.

`shellFor` has an argument `allToolDeps` that when set to `true` tells haskell.nix to include all the tool dependencies of all the packages in the shell.  This does not work well for `stackProject` projects (since stackage includes a lot of packages).  So it is disabled by default in `modules/stack-project.nix`.

This default is currently ignored if `shellFor` is called directly.

This change ensures that `shellFor` respects the defaults and any shell arguments passed to the project. As a result, `project.shell` and `project.shellFor {}` will now behave consistently.
@hamishmack hamishmack merged commit 8bed466 into master Feb 18, 2025
5251 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants