Skip to content

Commit 0c673ef

Browse files
committed
Merge branch 'stable'
2 parents 2a68dde + 9d810ed commit 0c673ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+333
-314
lines changed

CONTRIBUTING.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ improvements, and feature enhancements.
3939
Maintainers should be included in discussions of controversial changes and
4040
tricky code changes.
4141

42-
Our general approach is **"it's easier to ask forgiveness than permission"**. If
43-
there is ever a bad change, it can always be rolled back.
42+
Our general approach is **"it is easier to ask forgiveness than permission"**.
43+
If there is ever a bad change, it can always be rolled back.
4444

4545
### Stack's maintainers
4646

@@ -318,11 +318,11 @@ used for that purpose.
318318
## Code
319319

320320
If you would like to contribute code to fix a bug, add a new feature, or
321-
otherwise improve `stack`, pull requests are most welcome. It's a good idea to
321+
otherwise improve `stack`, pull requests are most welcome. It is a good idea to
322322
[submit an issue](https://github.com/commercialhaskell/stack/issues/new) to
323323
discuss the change before plowing into writing code.
324324

325-
If you'd like to help out but aren't sure what to work on, look for issues with
325+
If you'd like to help out but are not sure what to work on, look for issues with
326326
the
327327
[awaiting pull request](https://github.com/commercialhaskell/stack/issues?q=is%3Aopen+is%3Aissue+label%3A%22awaiting+pull+request%22)
328328
label. Issues that are suitable for newcomers to the codebase have the
@@ -509,10 +509,10 @@ stack test
509509
~~~
510510

511511
The `--file-watch` is a very useful option to get quick feedback. However,
512-
running the entire test suite after each file change will slow you down. You'll
513-
need to specify which test suite (unit test or integration) and pass arguments
514-
to specify which module you'd specifically like to run to get quick feedback. A
515-
description of this follows below.
512+
running the entire test suite after each file change will slow you down. You
513+
will need to specify which test suite (unit test or integration) and pass
514+
arguments to specify which module you'd specifically like to run to get quick
515+
feedback. A description of this follows below.
516516

517517

518518
If you would like to run the unit tests on their own, you can command:
@@ -545,7 +545,7 @@ Integration tests can be found in the
545545
[tests/integration](https://github.com/commercialhaskell/stack/tree/master/tests/integration)
546546
folder.
547547

548-
Running the integration tests is a little involved, you'll need to command:
548+
Running the integration tests is a little involved, you will need to command:
549549

550550
~~~text
551551
stack build --flag stack:integration-tests stack --exec stack-integration-test
@@ -579,8 +579,8 @@ You can disable a few integration tests through the -n option :
579579
stack build --flag stack:integration-tests stack --exec "stack-integration-test -n <PATTERN1> -n <PATTERN2>"
580580
~~~
581581

582-
To disable folders named after `<PATTERN1>` and `<PATTERN2>`
583-
It's especially useful when some tests are taking a while to complete.
582+
to disable folders named after `<PATTERN1>` and `<PATTERN2>`. It is especially
583+
useful when some tests are taking a while to complete.
584584

585585
On Linux, the `stack-integration-test` executable uses the `lld` linker and
586586
expects it to be on the PATH. The integration tests complete significantly
@@ -823,7 +823,7 @@ For further information, see the documentation for
823823

824824
## Slack channel
825825

826-
If you're making deep changes and real-time communication with the Stack team
826+
If you are making deep changes and real-time communication with the Stack team
827827
would be helpful, we have a `#stack-collaborators` Slack channel in the
828828
Haskell Foundation workspace. To join the workspace, follow this
829829
[link](https://haskell-foundation.slack.com/join/shared_invite/zt-z45o9x38-8L55P27r12YO0YeEufcO2w#/shared-invite/email).

ChangeLog.md

Lines changed: 53 additions & 52 deletions
Large diffs are not rendered by default.

doc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ stack exec my-project-exe # (4)!
243243
3. Build the template project and create an executable named `my-project-exe`.
244244

245245
First, if necessary, Stack will download a version of GHC in an isolated
246-
location. That won't interfere with other GHC installations on your system.
247-
(On Windows, if necessary, Stack will also download
246+
location. That will not interfere with other GHC installations on your
247+
system. (On Windows, if necessary, Stack will also download
248248
[MSYS2](https://www.msys2.org/). MSYS2 is a project that provides popular
249249
tools for developers on Windows.)
250250

doc/build_overview.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ in CLI).
9494
snapshot packages that have been replaced.
9595
* Apply the `flags` and `ghc-options` by name to these packages overwriting
9696
any previous values coming from a snapshot. If any values are specified
97-
but no matching package is found, it's an error. If a flag is not defined
98-
in the corresponding package cabal file, it's an error.
97+
but no matching package is found, it is an error. If a flag is not defined
98+
in the corresponding package cabal file, it is an error.
9999
* We are now left with the following:
100100
* A wanted compiler version
101101
* A map from package name to immutable packages with package config (flags,
@@ -160,13 +160,13 @@ specific components).
160160

161161
Named CLI flags are applied to specific packages by updating the
162162
config in one of the four maps. If a flag is specified and no package
163-
is found, it's an error. Note that flag settings are added _on top of_
163+
is found, it is an error. Note that flag settings are added _on top of_
164164
previous settings in this case, and does not replace them. That is, if
165165
previously we have `singleton (FlagName "foo") True` and now add
166166
`singleton (FlagName "bar") True`, both `foo` and `bar` will now be
167167
true. If any flags are specified but no matching package is found,
168-
it's an error. If a flag is not defined in the corresponding package
169-
cabal file, it's an error.
168+
it is an error. If a flag is not defined in the corresponding package
169+
Cabal file, it is an error.
170170

171171
## Apply CLI GHC options
172172

@@ -182,7 +182,7 @@ project package which uses that flag name.
182182

183183
General options are divided into the following categories:
184184

185-
* `$locals` is deprecated, it's now a synonym for `$project`
185+
* `$locals` is deprecated, it is now a synonym for `$project`
186186
* `$project` applies to all project packages, not to any dependencies
187187
* `$targets` applies to all project packages that are targets, not to any
188188
dependencies or non-target project packages. This is the default option
@@ -199,9 +199,8 @@ they get prepended otherwise they get used as is.
199199
Use some deterministic binary serialization and SHA256 thereof to get
200200
a hash of the following information:
201201

202-
* Actual compiler (GHC version, path, *FIXME* probably some other
203-
unique info from GHC, I've heard that `ghc --info` gives you
204-
something)
202+
* Actual compiler (GHC version, path, *FIXME* probably some other unique info
203+
from GHC, I have heard that `ghc --info` gives you something)
205204
* Global database map
206205
* Immutable dependency map
207206

@@ -234,19 +233,19 @@ installed in this database will never need to be rebuilt.
234233
all enabled components (using the fun backwards compat logic for
235234
`build-tools`)
236235
* Apply the logic recursively to come up with a full build plan
237-
* If a task depends exclusively on immutable packages, mark it as
238-
immutable. Otherwise, it's mutable. The former go into the snapshot
239-
database, the latter into the local database.
236+
* If a task depends exclusively on immutable packages, mark it as immutable.
237+
Otherwise, it is mutable. The former go into the snapshot database, the latter
238+
into the local database.
240239

241240
We now have a set of tasks of packages/components to build, with full
242241
config information for each package, and dependencies that must be
243242
built first.
244243

245244
!!! bug "To do"
246245

247-
There's some logic to deal with cyclic dependencies between test suites and
246+
There is some logic to deal with cyclic dependencies between test suites and
248247
benchmarks, where a task can be broken up into individual components versus
249-
be kept as a single task. Need to document this better. Currently it's the
248+
be kept as a single task. Need to document this better. Currently it is the
250249
"all in one" logic.
251250

252251
## Unregister local modified packages
@@ -269,7 +268,7 @@ built first.
269268
* If all good: do nothing
270269
* Otherwise, for immutable tasks: check the precompiled cache for an
271270
identical package installation (same GHC, dependencies, etc). If
272-
present: copy that over, and we're done.
271+
present: copy that over, and we are done.
273272
* Otherwise, perform the build, register, write to the Stack specific
274273
"is installed" stuff, and (for immutable tasks) register to the
275274
precompiled cache

doc/commands/build_command.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ This overrides:
334334

335335
Default: Disabled
336336

337-
Set the flag to force rebuild of packages even when it doesn't seem necessary
337+
Set the flag to force rebuild of packages even when it does not seem necessary
338338
based on file dirtiness.
339339

340340
### `--[no-]haddock` flag
@@ -530,7 +530,7 @@ Default (`stack build`): Disabled
530530
Default (`stack test` or `stack bench`): Enabled
531531

532532
Set the flag to continue building packages even after some build step fails.
533-
The packages which depend upon the failed build won't get built.
533+
The packages which depend upon the failed build will not get built.
534534

535535
### `--[no-]keep-tmp-files` flag
536536

@@ -571,7 +571,7 @@ with other projects.
571571

572572
Default: Disabled
573573

574-
Set the flag to force reconfiguration even when it doesn't seem necessary based
574+
Set the flag to force reconfiguration even when it does not seem necessary based
575575
on file dirtiness. This is sometimes useful with custom `Setup.hs` files, in
576576
particular when they depend on external data files.
577577

@@ -581,7 +581,7 @@ particular when they depend on external data files.
581581
project package. It allows you to skip test suites and benchmark without
582582
specifying other components (e.g. `stack test --skip long-test-suite` will run
583583
the tests without the `long-test-suite` test suite). Be aware that skipping
584-
executables won't work the first time the package is built due to an issue in
584+
executables will not work the first time the package is built due to an issue in
585585
[Cabal](https://github.com/commercialhaskell/stack/issues/3229).
586586

587587
This option can be specified multiple times to skip multiple components.

doc/commands/ghci_command.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ By default:
9494

9595
The `--only-main` flag can be useful if:
9696

97-
1. You're loading the project in order to run it in GHCi (e.g. via
97+
1. You are loading the project in order to run it in GHCi (e.g. via
9898
`main`), and you intend to reload while developing. Without flag,
9999
you will need to quit and restart GHCi whenever a module gets
100100
deleted. With the flag, reloading should work fine in this case.
101101

102-
2. If many of your modules have exports named the same thing, then
103-
you'll need to refer to them using qualified names. To avoid this,
102+
2. If many of your modules have exports named the same thing, then you
103+
will need to refer to them using qualified names. To avoid this,
104104
use the `--only-main` flag to start with a blank slate and just
105105
import the modules you are interested in.
106106

@@ -114,7 +114,7 @@ Stack combines all of the GHC options of components.
114114

115115
Combining GHC options should work out when packages share similar
116116
conventions. However, conflicts may arise, such as when one component
117-
defines default extensions which aren't assumed by another. For example,
117+
defines default extensions which are not assumed by another. For example,
118118
specifying `NoImplicitPrelude` in one component but not another is likely to
119119
cause failures. GHCi will be run with `-XNoImplicitPrelude`, but it is
120120
likely that modules in the other component assume that the `Prelude` is
@@ -156,7 +156,7 @@ and so will have access to your databases.
156156

157157
!!! note
158158

159-
Running `stack ghci` on a pristine copy of the code doesn't currently build
159+
Running `stack ghci` on a pristine copy of the code does not currently build
160160
libraries
161161
(issue [#2790](https://github.com/commercialhaskell/stack/issues/2790)) or
162162
internal libraries

doc/commands/hpc_command.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ This will output to the standard output stream a summary report for the combined
6767
coverage from `A` and `B`'s test suites. It will also log the path to the HTML
6868
for the corresponding full report.
6969

70-
This command also supports taking extra `.tix` files. If you've also built an
70+
This command also supports taking extra `.tix` files. If you have also built an
7171
executable, against exactly the same library versions of `A`, `B`, and `C`, then
7272
you could command the following:
7373

@@ -95,7 +95,7 @@ This report will consider all test results as well as the newly generated
9595
2. These test suites link against your library, rather than building the
9696
library directly. Coverage information is only given for libraries, ignoring
9797
the modules which get compiled directly into your executable. A common case
98-
where this doesn't happen is when your test suite and library both have
98+
where this does not happen is when your test suite and library both have
9999
something like `hs-source-dirs: src/`. In this case, when building your test
100100
suite you may also be compiling your library, instead of just linking
101101
against it.
@@ -140,8 +140,8 @@ However, advanced users may want to understand exactly how `--coverage` works:
140140
will then get loaded, modified, and outputted to
141141
`pkg-name/test-name/test-name.tix` in the local HPC root directory.
142142

143-
The `.tix` file gets modified to remove coverage file that isn't associated
144-
with a library. So, this means that you won't get coverage information for
143+
The `.tix` file gets modified to remove coverage file that is not associated
144+
with a library. So, this means that you will not get coverage information for
145145
the modules compiled in the `executable` or `test-suite` stanza of your Cabal
146146
file. This makes it possible to directly union multiple `*.tix` files from
147147
different executables (assuming they are using the exact same versions of the

doc/configure/customisation_scripts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mechanisms reflect distinct concepts, namely:
2727
installation.
2828

2929
When `install-ghc: false`, the script is still run. That allows you to ensure
30-
that only your script will install GHC and Stack won't default to its own
30+
that only your script will install GHC and Stack will not default to its own
3131
installation logic, even when the script fails.
3232

3333
The following environment variables are always available to the script:
@@ -61,7 +61,7 @@ case $HOOK_GHC_TYPE in
6161
# command install $HOOK_GHC_VERSION >/dev/null
6262
;;
6363
git)
64-
>&2 echo "Hook doesn't support installing from source"
64+
>&2 echo "Hook does not support installing from source"
6565
exit 1
6666
;;
6767
*)
@@ -89,7 +89,7 @@ case $HOOK_GHC_TYPE in
8989
;;
9090
git)
9191
# TODO: should be somewhat possible
92-
>&2 echo "Hook doesn't support installing from source"
92+
>&2 echo "Hook does not support installing from source"
9393
exit 1
9494
;;
9595
*)

doc/configure/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
Title: Configure
2+
title: Configure
33
---
44
<div class="hidden-warning"><a href="https://docs.haskellstack.org/"><img src="https://cdn.jsdelivr.net/gh/commercialhaskell/stack/doc/img/hidden-warning.svg"></a></div>
55

doc/configure/yaml/non-project.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ compiler-repository: git://my/ghc/repository
337337
~~~
338338

339339
Stack does not check the compiler version when it uses a compiler built from
340-
source. It is assumed that the built compiler is recent enough as Stack doesn't
340+
source. It is assumed that the built compiler is recent enough as Stack does not
341341
enable any known workaround to make older compilers work.
342342

343343
Building the compiler can take a very long time (more than one hour). For faster
@@ -595,7 +595,7 @@ The value of the `dump-logs` key controls what, if any, log file content is sent
595595
Possible values are:
596596

597597
~~~yaml
598-
dump-logs: none # don't dump the content of any log files
598+
dump-logs: none # do not dump the content of any log files
599599
dump-logs: warning # dump the content of any log files that include GHC warnings
600600
dump-logs: all # dump the content of all log files
601601
~~~
@@ -1608,7 +1608,7 @@ Default: `false`, unless the [Docker](../../topics/docker_integration.md) or
16081608
Command line equivalent (takes precedence): `--[no-]system-ghc` flag
16091609

16101610
Enables or disables using the GHC available on the PATH. (Make sure PATH is
1611-
explicit, i.e., don't use ~.) Useful to enable if you want to save the time,
1611+
explicit, i.e., do not use ~.) Useful to enable if you want to save the time,
16121612
bandwidth or storage space needed to setup an isolated GHC.
16131613

16141614
In a Nix-enabled configuration, Stack is incompatible with `system-ghc: false`.

0 commit comments

Comments
 (0)