File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ Emacs to use it. The way I do it is:
175
175
176
176
## Using ` nix repl `
177
177
178
- It's sometimes useful to load [ Haskell.nix] [ ] in the REPL to explore
178
+ It's sometimes useful to load [ Haskell.nix] [ ] in the [ REPL] ( https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-repl.html ) to explore
179
179
attrsets and try examples.
180
180
181
181
```
@@ -190,19 +190,19 @@ rec {
190
190
Load the example file:
191
191
192
192
```
193
- $ nix repl '<nixpkgs>' example.nix
194
- Welcome to Nix version 2.3pre6631_e58a7144 . Type :? for help.
193
+ $ nix repl
194
+ Welcome to Nix 2.10.3 . Type :? for help.
195
195
196
- Loading ' <nixpkgs>'...
197
- Added 10403 variables.
196
+ nix-repl> :l <nixpkgs>
197
+ Added 16938 variables.
198
198
199
- Loading ' example.nix'...
199
+ nix-repl> :l example.nix
200
200
Added 2 variables.
201
201
202
202
nix-repl> lib.take 5 pkgNames
203
- [ "ALUT " "ANum " "Allure " "Boolean " "BoundedChan " ]
203
+ [ "AC-Angle " "ALUT " "ANum " "Agda " "Allure " ]
204
204
205
- nix-repl>
205
+ nix-repl> :q
206
206
```
207
207
208
208
Now that you have ` nix-tools ` and are able to import [ Haskell.nix] [ ] ,
You can’t perform that action at this time.
0 commit comments