@@ -12,15 +12,15 @@ Use version v2.1.1 of the standard library with Agda 2.7.0. You can find the cor
12
12
done manually by visiting the Github repository for the library, or via the
13
13
command line as follows:
14
14
```
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
16
16
```
17
17
Note that you can replace ` wget ` with other popular tools such as ` curl ` and that
18
18
you can replace ` 2.1.1 ` with any other version of the library you desire.
19
19
20
20
3 . Extract the standard library from the tarball. Again this can either be
21
21
done manually or via the command line as follows:
22
22
```
23
- tar -zxvf agda-stdlib.tar
23
+ tar -zxvf agda-stdlib.tar.gz
24
24
```
25
25
26
26
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
30
30
cabal install
31
31
```
32
32
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 ` .
36
35
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,
38
40
may not exist and you may have to create them.
39
41
40
42
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 ` :
42
44
```
43
45
$HERE/agda-stdlib-2.1.1/standard-library.agda-lib
44
46
```
@@ -55,7 +57,7 @@ Now, the standard library is ready to be used either:
55
57
searches for modules, for instance ` . ` (just the project's root).
56
58
57
59
- in all your projects, by adding the following line to
58
- ` $HOME/.agda /defaults `
60
+ ` $AGDA_DIR /defaults `
59
61
```
60
62
standard-library
61
63
```
0 commit comments