aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/command-ref
diff options
context:
space:
mode:
authorSamuel Evans-Powell <samuel.evans-powell@tiny.cloud>2019-01-18 10:50:54 +1000
committerSamuel Evans-Powell <samuel.evans-powell@tiny.cloud>2019-01-18 10:50:54 +1000
commit2ae5624b2f32e3c84c57d164f2c7fef205b458cc (patch)
tree3fb0861dbd1b3da3907344b0eb0808b02c28ee86 /doc/manual/command-ref
parent4ae6e849015fb269414c1544e815aba75085cf7b (diff)
Update instructions for Haskell script using nix-shell interpreter
- The instructions for using nix-shell as an interpreter has a Haskell script example that doesn't work on more recent versions of Nix. Update the instructions with a working command
Diffstat (limited to 'doc/manual/command-ref')
-rw-r--r--doc/manual/command-ref/nix-shell.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual/command-ref/nix-shell.xml b/doc/manual/command-ref/nix-shell.xml
index cb443c888..bb4a4e420 100644
--- a/doc/manual/command-ref/nix-shell.xml
+++ b/doc/manual/command-ref/nix-shell.xml
@@ -337,7 +337,7 @@ following Haskell script uses a specific branch of Nixpkgs/NixOS (the
<programlisting><![CDATA[
#! /usr/bin/env nix-shell
-#! nix-shell -i runghc -p haskellPackages.ghc haskellPackages.HTTP haskellPackages.tagsoup
+#! nix-shell -i runghc -p "haskellPackages.ghcWithPackages (ps: [ps.HTTP ps.tagsoup])"
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-18.03.tar.gz
import Network.HTTP