Skip to content

Commit 42f7eb1

Browse files
authored
Add missing import and fix typos in docs (#543)
1 parent ded93b3 commit 42f7eb1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/user-guide/cabal-projects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ instantiate a package set.
8282
let
8383
# Import the Haskell.nix library,
8484
haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
85-
nixpkgs = haskellNix.sources.nixpgs-1909 haskellNix.nixpkgsArgs;
85+
nixpkgs = import haskellNix.sources.nixpkgs-1909 haskellNix.nixpkgsArgs;
8686
haskell = nixpkgs.haskell-nix;
8787
8888
# Instantiate a package set using the generated file.

docs/user-guide/development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ selects packages from the larger package set.
109109
# shell.nix
110110
let
111111
haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
112-
nixpkgs = haskellNix.sources.nixpkgs-1909 haskellNix.nixpkgsArgs;
112+
nixpkgs = import haskellNix.sources.nixpkgs-1909 haskellNix.nixpkgsArgs;
113113
haskell = nixpkgs.haskell-nix;
114114
in
115115
haskell.haskellPackages.ghcWithPackages (ps: with ps;
@@ -128,7 +128,7 @@ project.
128128
```nix
129129
let
130130
haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
131-
nixpkgs = haskellNix.sources.nixpkgs-1909 haskellNix.nixpkgsArgs;
131+
nixpkgs = import haskellNix.sources.nixpkgs-1909 haskellNix.nixpkgsArgs;
132132
haskell = nixpkgs.haskell-nix;
133133
in
134134
haskell.snapshots."lts-13.18".alex.components.exes.alex

docs/user-guide/stack-projects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ instantiate a package set.
4444
let
4545
# Import the Haskell.nix library,
4646
haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
47-
nixpkgs = haskellNix.sources.nixpgs-1909 haskellNix.nixpkgsArgs;
47+
nixpkgs = import haskellNix.sources.nixpkgs-1909 haskellNix.nixpkgsArgs;
4848
haskell = nixpkgs.haskell-nix;
4949
5050
# Instantiate a package set using the generated file.

0 commit comments

Comments
 (0)