Skip to content

haskell.nix: bump template GHC ghc926 -> ghc96 - #101

Open
hamishmack wants to merge 1 commit into
NixOS:masterfrom
hamishmack:fix-haskell-nix-ghc-version
Open

haskell.nix: bump template GHC ghc926 -> ghc96#101
hamishmack wants to merge 1 commit into
NixOS:masterfrom
hamishmack:fix-haskell-nix-ghc-version

Conversation

@hamishmack

Copy link
Copy Markdown
Contributor

The haskell.nix template pins compiler-nix-name = "ghc926" in haskell.nix/nix/hix.nix. haskell.nix no longer supports GHC older than 9.6, so following its getting-started guide (nix flake init --template templates#haskell-nix then nix develop) now fails immediately:

error: Desired GHC (9.2.6) is older than the oldest GHC haskell.nix might work with (GHC 9.6).

This bumps the pinned compiler to ghc96 (a currently-supported version, matching haskell.nix's own hix init default).

Reported at input-output-hk/haskell.nix#2518. haskell.nix is also adding an in-repo copy of this template (input-output-hk/haskell.nix#2531) so its docs no longer depend on this one drifting, but this keeps templates#haskell-nix working for anyone who uses it directly.

haskell.nix no longer supports GHC older than 9.6, so `nix develop` on a
freshly-initialised template fails with:

    Desired GHC (9.2.6) is older than the oldest GHC haskell.nix might
    work with (GHC 9.6).

Bump the pinned compiler to a supported version. Reported at
input-output-hk/haskell.nix#2518.
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.

1 participant