@@ -40,37 +40,36 @@ a version of GHC matching the configured resolver. Enabling Nix
4040support means packages will always be built using a GHC available
4141inside the shell, rather than your globally installed one if any.
4242
43- Note that in this mode `stack` can use only those resolvers that have
44- already been mirrored into the Nix package repository. The
45- [Nixpkgs master branch](https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/haskell-modules)
46- usually picks up new resolvers such as Stackage nightlies and LTS
47- versions within two or three days. Then it takes another two or three
43+ Note that in this mode `stack` can use only GHC versions than have
44+ already been mirrored into the Nix package repository.
45+ The [Nixpkgs master branch](https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/haskell-modules)
46+ usually picks up new versions quickly, but it takes two or three
4847days before those updates arrive in the `unstable` channel. Release
4948channels, like `nixos-15.09`, receive those updates only
5049occasionally -- say, every two or three months --, so you should not
51- expect them to have the latest resolvers available. Fresh Nix installs
50+ expect them to have the latest compiler available. Fresh NixOS installs
5251use a release version by default.
5352
54- To know for sure whether a given resolver as available on your system,
53+ To know for sure whether a given compiler is available on your system,
5554you can use the command
5655
5756` ` ` sh
58- $ nix-env -f "<nixpkgs>" -qaP -A haskell.packages.lts-3_13.ghc
59- haskell.packages.lts-3_13.ghc ghc-7.10.2
57+ $ nix-env -f "<nixpkgs>" -qaP -A haskell.compiler.ghc801
58+ haskell.compiler.ghc801 ghc-8.0.1
6059` ` `
6160
6261to check whether it's available. If Nix doesn't know that resolver
6362yet, then you'll see the following error message instead :
6463
6564` ` ` sh
66- $ nix-env -f "<nixpkgs>" -qaP -A haskell.packages.lts-3_99.ghc
67- error: attribute ‘lts-3_99 ’ in selection path ‘haskell.packages.lts-3_99.ghc ’ not found
65+ $ nix-env -f "<nixpkgs>" -qaP -A haskell.compiler.ghc999
66+ error: attribute ‘ghc999 ’ in selection path ‘haskell.compiler.ghc999 ’ not found
6867` ` `
6968
70- You can list all known Haskell package sets in Nix with the following :
69+ You can list all known Haskell compilers in Nix with the following :
7170
7271` ` ` sh
73- $ nix-instantiate --eval -E "with import <nixpkgs> {}; lib.attrNames haskell.packages "
72+ $ nix-instantiate --eval -E "with import <nixpkgs> {}; lib.attrNames haskell.compiler "
7473` ` `
7574
7675Alternatively, install `nix-repl`, a convenient tool to explore
@@ -86,7 +85,7 @@ autocomplete:
8685
8786` ` ` sh
8887nix-repl> :l <nixpkgs>
89- nix-repl> haskell.packages.lts- <Tab>
88+ nix-repl> haskell.compiler.ghc <Tab>
9089` ` `
9190
9291You can type and evaluate any nix expression in the nix-repl, such as
0 commit comments