Fix type error in shell.nix

This commit is contained in:
Fendor 2020-07-29 11:22:42 +02:00 committed by fendor
parent e44f618c11
commit 0439590a96

View File

@ -15,7 +15,7 @@ let defaultCompiler = "ghc" + lib.replaceStrings ["."] [""] haskellPackages.ghc.
if compiler == "default" || compiler == defaultCompiler
then haskellPackages.ghcWithPackages p
# for all other compilers there is no Nix cache so dont bother building deps with NIx
else haskell.packages.${compiler}.ghcWithPackages [];
else haskell.packages.${compiler}.ghcWithPackages (_: []);
compilerWithPackages = haskellPackagesForProject(p:
with p;