git.iko.soy/typeable/servant
on master help sign in
unsupporting GHC < 8.6.5 in the nix-shell
commitb1a9876dc994bb7bccd5a4c44a0dba0f9eb84dda authorakhesaCaro <caroline.gaudreau@gmail.com> dateSun 12 Sep 2021, 10:49 (5 years ago) parent8da966f
2 files changed+16−7
nix/README.md+14−3 nix/shell.nix+2−4
nix/README.md+14−3
@@ -23,7 +23,18 @@ $ nix-shell nix/shell.nix --argstr compiler ghcHEAD
2323```
2424
2525**Possible GHC versions**
26−- `ghc822Binary`
27−- `ghc865`
26+- `ghc865Binary`
2827- `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 {
2− url = "https://releases.nixos.org/nixos/20.09/nixos-20.09.3505.12d9950bf47/nixexprs.tar.xz";
3− sha256 = "0fsl8bsdb8i536pfs4wrp0826h5l84xqlwx32sbz66jg4ykqp9lr";
1+let nixos = fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/21.05.tar.gz";
42}; in
53
6−{ compiler ? "ghc8102"
4+{ compiler ? "ghc8104"
75, tutorial ? false
86, pkgs ? import nixos { config = {}; }
97}: