Replies: 3 comments
|
Do you mean exposing something like PR welcome! |
0 replies
|
@srid yes. As I understand, you use I'd like to have this
|
0 replies
|
I'm in favor of doing this. Right now I have no idea (at least from reading the docs) on how to change the GHC version used. But I need to test with different GHC versions from time to time. Edit: Ah, just found out about |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sometimes, I need to write scripts that use Cabal and GHC with all necessary packages. At the same time, I don't want to run the script inside
nix developbecause I run it in CI and don't want to wait to get all dependencies from thedevShell.Example of the script:
https://github.com/deemp/lima/blob/3eb85c7099ffc46897181b7132666842c8aec8bf/flake.nix#L129-L135
The necessary GHC is present in the
haskellProjectsconfig. However, I can get this GHC and add it to the script dependencies only with a crutch:https://github.com/deemp/lima/blob/3eb85c7099ffc46897181b7132666842c8aec8bf/flake.nix#L118-L122
Therefore, I suggest to add
haskellProjects.ghcoption that will provide the GHC unlessdevShell.enable = false.All reactions