Haskell stack not working after upgrade to 19.03

#1

Hi,

after upgrading to nixos-19.03 stack started misbehaving:

$ stack ghci                                                                                                                                         
error: attribute 'ghc863' missing, at (string):1:43                                                                                                                          
(use '--show-trace' to show detailed location information)

While a simple stack --help works (i.e. the expected output is produced).

Am I doing something wrong or should I report a bug?

0 Likes

#2

Could you provide a bit more information?

Like, could you provide the --show-trace output, the default.nix and the stack.yaml that you are uisng?

0 Likes

#3

I think haskell.compiler.ghc863 was removed from nixpkgs. You may want to use a stack resolver that points to ghc864.

0 Likes

#4

You can alternatively point stack to a version of nixpkgs that has ghc863

nix:
  path: [nixpkgs=https://github.com/NixOS/nixpkgs/archive/REV.tar.gz]
2 Likes

#5

Removing ~/.stack and running stack againg solved the problem :slight_smile:

0 Likes

#6

How? Shouldn’t it have still been looking for ghc863, which still shouldn’t have existed? What GHC version is getting?

1 Like