Skip to content

devShell ghci may not work with GHC 9.8 #374

@peterbecich

Description

@peterbecich

Using this example https://github.com/peterbecich/ghcid-issue, which has

          basePackages = pkgs.haskell.packages.ghc98;

, loading ghci in the devShell results in:

$ ghci 
Loaded package environment from /home/peterbecich/.ghc/x86_64-linux-9.8.2/environments/default
GHCi, version 9.8.2: https://www.haskell.org/ghc/  :? for help
<command line>: cannot satisfy -package-id base-4.19.1.0-eafb
    (use -v for more information)

ghci in the devShell works fine with the default GHC 9.6.

ghci also works fine outside of the devShell using GHCup-provided GHC 9.8 and ghci.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions