Skip to content

Commit 9b6aa5b

Browse files
committed
Merge branch 'stable'
2 parents e140b3a + 2e64122 commit 9b6aa5b

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

doc/build_command.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ supported syntaxes for targets are:
8585
of the test suite and benchmark components, respectively, are selected to be
8686
built.
8787

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+
8895
* *package identifier*, e.g. `stack build foobar-1.2.3`, is usually used to
8996
include specific package versions from the package index. If the version
9097
selected conflicts with an existing local package or extra dep, then Stack

doc/ghc_command.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ option.
1515
Pass the option `--package <package>` to add the initial GHC argument
1616
`-package-id=<unit_id>`, where `<unit_id>` is the unit ID of the specified
1717
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).

doc/run_command.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ The `--cwd` option can be used to set the working directory before the
2929
executable is run.
3030

3131
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.
3335

3436
The `--rts-options` option (which can be specified multiple times) can be used
3537
to pass a list of GHC's

doc/runghc_command.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ option.
1616
Pass the option `--package <package>` to add the initial GHC argument
1717
`-package-id=<unit_id>`, where `<unit_id>` is the unit ID of the specified
1818
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).

0 commit comments

Comments
 (0)