Skip to content

Commit 3a292d4

Browse files
authored
Update development.md (#1591)
1 parent ee1a00f commit 3a292d4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/tutorials/development.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Emacs to use it. The way I do it is:
175175

176176
## Using `nix repl`
177177

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
179179
attrsets and try examples.
180180

181181
```
@@ -190,19 +190,19 @@ rec {
190190
Load the example file:
191191

192192
```
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.
195195
196-
Loading '<nixpkgs>'...
197-
Added 10403 variables.
196+
nix-repl> :l <nixpkgs>
197+
Added 16938 variables.
198198
199-
Loading 'example.nix'...
199+
nix-repl> :l example.nix
200200
Added 2 variables.
201201
202202
nix-repl> lib.take 5 pkgNames
203-
[ "ALUT" "ANum" "Allure" "Boolean" "BoundedChan" ]
203+
[ "AC-Angle" "ALUT" "ANum" "Agda" "Allure" ]
204204
205-
nix-repl>
205+
nix-repl> :q
206206
```
207207

208208
Now that you have `nix-tools` and are able to import [Haskell.nix][],

0 commit comments

Comments
 (0)