Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and Fix Build System - Move from Stack to Cabal, Re-configure Nix Files #141

Open
ErnestKz opened this issue Apr 10, 2024 · 0 comments

Comments

@ErnestKz
Copy link
Contributor

ErnestKz commented Apr 10, 2024

Most concerning problem is that the ghc of the dev-enviornment, and test enviornment are not necessarily synced up with the ghc of the release.

This is because we have to specify the ghc version separately in the stack.yaml file, while the one for release, we get it (at the moment) implicitly from nixpkgs. A half-way fix would be to be use the explicitly defined haskell package set in the release.nix file.

It's a halfway fix, because we have to update the ghc version in 2 places, it's still error prone.

Not only this is a halfway fix, but also quite awkward to implement due to how we have arranged our nix files to accomodate stack.

If we are going to go ahead with this fix, then we should use it as a chance to move to the simpler cabal based setup, something like we've seen @robbert-vdh do for an icepeak release.

This can fully fix the ghc syncing issue, simplify the nix files, simplify the haskell build process, and also pave the way to solve these issues:

We can make use of some of the code changes from this PR (it updated the nixpkgs pin) #140

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

No branches or pull requests

1 participant