on iko/ghcjs-patch-master help sign in
Add missing `import` and fix typos in docs (#543)
42f7eb1Hamish Mackenzie
docs/user-guide/cabal-projects.md+1−1
@@ -82,7 +82,7 @@ instantiate a package set.
82let
82let
83 # Import the Haskell.nix library,
83 # Import the Haskell.nix library,
84 haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
84 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;
86 haskell = nixpkgs.haskell-nix;
86 haskell = nixpkgs.haskell-nix;
87
87
88 # Instantiate a package set using the generated file.
88 # Instantiate a package set using the generated file.
docs/user-guide/development.md+2−2
@@ -109,7 +109,7 @@ selects packages from the larger package set.
109# shell.nix
109# shell.nix
110let
110let
111 haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
111 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;
113 haskell = nixpkgs.haskell-nix;
113 haskell = nixpkgs.haskell-nix;
114in
114in
115 haskell.haskellPackages.ghcWithPackages (ps: with ps;
115 haskell.haskellPackages.ghcWithPackages (ps: with ps;
@@ -128,7 +128,7 @@ project.
128```nix
128```nix
129let
129let
130 haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
130 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;
132 haskell = nixpkgs.haskell-nix;
132 haskell = nixpkgs.haskell-nix;
133in
133in
134 haskell.snapshots."lts-13.18".alex.components.exes.alex
134 haskell.snapshots."lts-13.18".alex.components.exes.alex
docs/user-guide/stack-projects.md+1−1
@@ -44,7 +44,7 @@ instantiate a package set.
44let
44let
45 # Import the Haskell.nix library,
45 # Import the Haskell.nix library,
46 haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
46 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;
48 haskell = nixpkgs.haskell-nix;
48 haskell = nixpkgs.haskell-nix;
49
49
50 # Instantiate a package set using the generated file.
50 # Instantiate a package set using the generated file.