Following a suggestion to fully replace stack with a nix-shell I wrote a default.nix file
let
pkgs = import <nixpkgs> { };
in
pkgs.haskellPackages.developPackage {
root = ./.;
modifier = drv: pkgs.haskell.lib.overrideCabal drv (attrs: {
buildTools = with pkgs.haskellPackages;
(attrs.buildTools or []) ++ [cabal-install ghcid] ;
});
}
And executed
nix-shell --run ghcid
I got the same error log as before. I even tried to add stm_2_5_0_0 to haskellPackage in default.nix… Still the same error log.
Since the error does not seem related to stack or Nix, is the error caused by the cabal configuration of the project ?