Add missing import and fix typos in docs (#543)

This commit is contained in:
Hamish Mackenzie
2020-04-13 01:10:44 +12:00
committed by GitHub
parent ded93b38ff
commit 42f7eb16c7
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ instantiate a package set.
let
# Import the Haskell.nix library,
haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
nixpkgs = haskellNix.sources.nixpgs-1909 haskellNix.nixpkgsArgs;
nixpkgs = import haskellNix.sources.nixpkgs-1909 haskellNix.nixpkgsArgs;
haskell = nixpkgs.haskell-nix;
# Instantiate a package set using the generated file.
+2 -2
View File
@@ -109,7 +109,7 @@ selects packages from the larger package set.
# shell.nix
let
haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
nixpkgs = haskellNix.sources.nixpkgs-1909 haskellNix.nixpkgsArgs;
nixpkgs = import haskellNix.sources.nixpkgs-1909 haskellNix.nixpkgsArgs;
haskell = nixpkgs.haskell-nix;
in
haskell.haskellPackages.ghcWithPackages (ps: with ps;
@@ -128,7 +128,7 @@ project.
```nix
let
haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
nixpkgs = haskellNix.sources.nixpkgs-1909 haskellNix.nixpkgsArgs;
nixpkgs = import haskellNix.sources.nixpkgs-1909 haskellNix.nixpkgsArgs;
haskell = nixpkgs.haskell-nix;
in
haskell.snapshots."lts-13.18".alex.components.exes.alex
+1 -1
View File
@@ -44,7 +44,7 @@ instantiate a package set.
let
# Import the Haskell.nix library,
haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
nixpkgs = haskellNix.sources.nixpgs-1909 haskellNix.nixpkgsArgs;
nixpkgs = import haskellNix.sources.nixpkgs-1909 haskellNix.nixpkgsArgs;
haskell = nixpkgs.haskell-nix;
# Instantiate a package set using the generated file.