File tree Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,13 @@ supported syntaxes for targets are:
85
85
of the test suite and benchmark components, respectively, are selected to be
86
86
built.
87
87
88
+ Stackage snapshots do not include directly the packages in GHC's global
89
+ package database which come with GHC (GHC boot libraries). For example, if
90
+ ` Cabal ` is not a local package or an extra dep, then ` stack build Cabal `
91
+ will specify the latest version of that package in the package index, which
92
+ may differ from the version provided by the version of GHC specified by the
93
+ snapshot.
94
+
88
95
* * package identifier* , e.g. ` stack build foobar-1.2.3 ` , is usually used to
89
96
include specific package versions from the package index. If the version
90
97
selected conflicts with an existing local package or extra dep, then Stack
Original file line number Diff line number Diff line change @@ -15,4 +15,7 @@ option.
15
15
Pass the option ` --package <package> ` to add the initial GHC argument
16
16
` -package-id=<unit_id> ` , where ` <unit_id> ` is the unit ID of the specified
17
17
package in the installed package database. The option can be specified multiple
18
- times.
18
+ times. Alternatively, the option ` --package "<packages>" ` can be used, where
19
+ ` <packages> ` is a white space-delimited list of packages. The approach taken to
20
+ these packages is the same as if they were specified as targets to
21
+ [ ` stack build ` ] ( build_command.md#target-syntax ) .
Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ The `--cwd` option can be used to set the working directory before the
29
29
executable is run.
30
30
31
31
The ` --package ` option (which can be specified multiple times) can be used to
32
- add a package name to build targets.
32
+ add a package name to build targets. Alternatively, the option
33
+ ` --package "<packages>" ` can be used, where ` <packages> ` is a white
34
+ space-delimited list of packages.
33
35
34
36
The ` --rts-options ` option (which can be specified multiple times) can be used
35
37
to pass a list of GHC's
Original file line number Diff line number Diff line change @@ -16,4 +16,7 @@ option.
16
16
Pass the option ` --package <package> ` to add the initial GHC argument
17
17
` -package-id=<unit_id> ` , where ` <unit_id> ` is the unit ID of the specified
18
18
package in the installed package database. The option can be specified multiple
19
- times.
19
+ times. Alternatively, the option ` --package "<packages>" ` can be used, where
20
+ ` <packages> ` is a white space-delimited list of packages. The approach taken to
21
+ these packages is the same as if they were specified as targets to
22
+ [ ` stack build ` ] ( build_command.md#target-syntax ) .
You can’t perform that action at this time.
0 commit comments