Skip to content

Commit 98c1411

Browse files
committed
Updated the haskell.nix imports to overlay style
Some of the examples in the documentation were still passing an empty set to the haskell.nix imports but this is no longer valid because the import now results in a set rather than a function.
1 parent 4b74fa0 commit 98c1411

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
@@ -81,7 +81,7 @@ instantiate a package set.
8181
# default.nix
8282
let
8383
# Import the Haskell.nix library,
84-
haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
84+
haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz);
8585
8686
# Instantiate a package set using the generated file.
8787
pkgSet = haskell.mkCabalProjectPkgSet {

docs/user-guide/development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ selects packages from the larger package set.
108108
```nix
109109
# shell.nix
110110
let
111-
haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
111+
haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz);
112112
in
113113
haskell.haskellPackages.ghcWithPackages (ps: with ps;
114114
[ lens conduit conduit-extra ])
@@ -125,7 +125,7 @@ project.
125125

126126
```nix
127127
let
128-
haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
128+
haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz);
129129
in
130130
haskell.snapshots."lts-13.18".alex.components.exes.alex
131131
```

docs/user-guide/stack-projects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ instantiate a package set.
4343
# default.nix
4444
let
4545
# Import the Haskell.nix library,
46-
haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
46+
haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz);
4747
4848
# Instantiate a package set using the generated file.
4949
pkgSet = haskell.mkStackPkgSet {

0 commit comments

Comments
 (0)