@@ -108,7 +108,9 @@ selects packages from the larger package set.
108108```nix
109109# shell.nix
110110let
111− haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
111+ src = builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz;
112+ nixpkgs = import (src + "/nixpkgs") (import src);
113+ haskell = nixpkgs.haskell-nix;
112114in
113115 haskell.haskellPackages.ghcWithPackages (ps: with ps;
114116 [ lens conduit conduit-extra ])
@@ -125,7 +127,9 @@ project.
125127
126128```nix
127129let
128− haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
130+ src = builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz;
131+ nixpkgs = import (src + "/nixpkgs") (import src);
132+ haskell = nixpkgs.haskell-nix;
129133in
130134 haskell.snapshots."lts-13.18".alex.components.exes.alex
131135```