Skip to content

Commit 1fdafef

Browse files
authored
1 parent 25dba60 commit 1fdafef

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

doc/installation-guide.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ Use version v2.1.1 of the standard library with Agda 2.7.0. You can find the cor
1212
done manually by visiting the Github repository for the library, or via the
1313
command line as follows:
1414
```
15-
wget -O agda-stdlib.tar https://github.com/agda/agda-stdlib/archive/v2.1.1.tar.gz
15+
wget -O agda-stdlib.tar.gz https://github.com/agda/agda-stdlib/archive/v2.1.1.tar.gz
1616
```
1717
Note that you can replace `wget` with other popular tools such as `curl` and that
1818
you can replace `2.1.1` with any other version of the library you desire.
1919

2020
3. Extract the standard library from the tarball. Again this can either be
2121
done manually or via the command line as follows:
2222
```
23-
tar -zxvf agda-stdlib.tar
23+
tar -zxvf agda-stdlib.tar.gz
2424
```
2525

2626
4. [ OPTIONAL ] If using [cabal](https://www.haskell.org/cabal/) then run
@@ -30,15 +30,17 @@ Use version v2.1.1 of the standard library with Agda 2.7.0. You can find the cor
3030
cabal install
3131
```
3232

33-
5. Locate the file `$HOME/.agda/libraries` where `$HOME` on Ubuntu/MacOS
34-
is an environment variable that points to your home directory. The
35-
value of the environment variable can be found by running `echo $HOME`.
33+
5. Locate the file `$AGDA_DIR/libraries` where `$AGDA_DIR` on Ubuntu/MacOS
34+
can be found by running `agda --print-agda-app-dir`.
3635

37-
Note that the `.agda` directory and the `libraries` file within it,
36+
Full details, including the various possible locations that `$AGDA_DIR`
37+
might map to, may be found in [the online documentation](https://agda.readthedocs.io/en/latest/tools/package-system.html#installing-libraries).
38+
39+
Note that the `$AGDA_DIR` directory and the `libraries` file within it,
3840
may not exist and you may have to create them.
3941

4042
6. Register the standard library with Agda's package system by adding
41-
the following line to `$HOME/.agda/libraries`:
43+
the following line to `$AGDA_DIR/libraries`:
4244
```
4345
$HERE/agda-stdlib-2.1.1/standard-library.agda-lib
4446
```
@@ -55,7 +57,7 @@ Now, the standard library is ready to be used either:
5557
searches for modules, for instance `.` (just the project's root).
5658

5759
- in all your projects, by adding the following line to
58-
`$HOME/.agda/defaults`
60+
`$AGDA_DIR/defaults`
5961
```
6062
standard-library
6163
```

0 commit comments

Comments
 (0)