Skip to content

Be able to choose GHC to use, especially when working with Stackage snapshots? #1531

Open
@thomasjm

Description

@thomasjm

This is a follow-up from the discussion on #1301.

I'd like to be able to set up dev environments using haskell.nix, but I would really like to use the vanilla GHC builds from Nixpkgs rather than the patched ones provided here.

This would be especially useful because haskell.nix seems to be the only tool around that reliably builds packages from Stackage snapshots. (Nixpkgs itself has about 5% of Stackage packages broken at the moment.) For example, I'd love to be able to build expressions like the following, but using a vanilla GHC.

haskell-nix.snapshots."lts-19.13".ghcWithPackages (ps: with ps; [aeson ...])

Is it possible to do this at the moment, or could it be made possible? I saw that there's a module option ghc.package which looks promising, but it's not clear to me whether I can use that with snapshots.XXX.ghcWithPackages. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    preservedKeep stale bot away

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions