unsupporting GHC < 8.6.5 in the nix-shell
This commit is contained in:
parent
8da966f057
commit
b1a9876dc9
2 changed files with 16 additions and 7 deletions
|
@ -23,7 +23,18 @@ $ nix-shell nix/shell.nix --argstr compiler ghcHEAD
|
||||||
```
|
```
|
||||||
|
|
||||||
**Possible GHC versions**
|
**Possible GHC versions**
|
||||||
- `ghc822Binary`
|
- `ghc865Binary`
|
||||||
- `ghc865`
|
|
||||||
- `ghc884`
|
- `ghc884`
|
||||||
- `ghc8102` - default
|
- `ghc8104` - default
|
||||||
|
|
||||||
|
### Cabal users
|
||||||
|
|
||||||
|
GHC version can be chosen via the nix-shell parameter
|
||||||
|
|
||||||
|
`cabal build all`
|
||||||
|
|
||||||
|
### Stack version
|
||||||
|
|
||||||
|
Since the ghc version is set by the LTS version, it is preferable to use the `ghc8104` version parameter for the nix-shell.
|
||||||
|
|
||||||
|
`stack --no-nix --system-ghc <command>`
|
|
@ -1,9 +1,7 @@
|
||||||
let nixos = fetchTarball {
|
let nixos = fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/21.05.tar.gz";
|
||||||
url = "https://releases.nixos.org/nixos/20.09/nixos-20.09.3505.12d9950bf47/nixexprs.tar.xz";
|
|
||||||
sha256 = "0fsl8bsdb8i536pfs4wrp0826h5l84xqlwx32sbz66jg4ykqp9lr";
|
|
||||||
}; in
|
}; in
|
||||||
|
|
||||||
{ compiler ? "ghc8102"
|
{ compiler ? "ghc8104"
|
||||||
, tutorial ? false
|
, tutorial ? false
|
||||||
, pkgs ? import nixos { config = {}; }
|
, pkgs ? import nixos { config = {}; }
|
||||||
}:
|
}:
|
||||||
|
|
Loading…
Reference in a new issue