git.iko.soy/typeable/servant
on master help sign in
unsupporting GHC < 8.6.5 in the nix-shell
b1a9876akhesaCaro
nix/README.md+14−3
@@ -23,7 +23,18 @@ $ nix-shell nix/shell.nix --argstr compiler ghcHEAD
23```
23```
24
24
25**Possible GHC versions**
25**Possible GHC versions**
26−- `ghc822Binary`
26+- `ghc865Binary`
27−- `ghc865`
28- `ghc884`
27- `ghc884`
29−- `ghc8102` - default
28+- `ghc8104` - default
29+
30+### Cabal users
31+
32+GHC version can be chosen via the nix-shell parameter
33+
34+`cabal build all`
35+
36+### Stack version
37+
38+Since the ghc version is set by the LTS version, it is preferable to use the `ghc8104` version parameter for the nix-shell.
39+
40+`stack --no-nix --system-ghc <command>`
nix/shell.nix+2−4
@@ -1,9 +1,7 @@
1−let nixos = fetchTarball {
1+let nixos = fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/21.05.tar.gz";
2− url = "https://releases.nixos.org/nixos/20.09/nixos-20.09.3505.12d9950bf47/nixexprs.tar.xz";
3− sha256 = "0fsl8bsdb8i536pfs4wrp0826h5l84xqlwx32sbz66jg4ykqp9lr";
4}; in
2}; in
5
3
6−{ compiler ? "ghc8102"
4+{ compiler ? "ghc8104"
7, tutorial ? false
5, tutorial ? false
8, pkgs ? import nixos { config = {}; }
6, pkgs ? import nixos { config = {}; }
9}:
7}: