Skip to content

Commit 73b0431

Browse files
committed
Merge branch 'stable'
2 parents 13ba67a + 2cd4094 commit 73b0431

28 files changed

+1540
-1111
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ about: Report a bug in Stack
55

66
Please follow the steps below for reporting a bug:
77

8-
Make sure that you are using the latest release (currently stack-2.7.5).
9-
See the [upgrade instructions](http://docs.haskellstack.org/en/stable/install_and_upgrade/#upgrade) to upgrade.
8+
Make sure that you are using the latest release (currently stack-2.7.5). See the
9+
[upgrade instructions](http://docs.haskellstack.org/en/stable/install_and_upgrade/#upgrade)
10+
to upgrade.
1011

1112
Please use the following schema for your bug report:
1213

@@ -31,20 +32,21 @@ What you expected to see and happen.
3132

3233
What actually happened.
3334

34-
If you suspect that a stack command misbehaved, please include the output of that command in `--verbose` mode.
35-
If the output is larger than a page please paste the output in a [Gist](https://gist.github.com/).
35+
If you suspect that a Stack command misbehaved, please include the output of
36+
that command in `--verbose` mode. If the output is larger than a page please
37+
paste the output in a [Gist](https://gist.github.com/).
3638

37-
```
38-
$ stack <your command here> <args> --verbose
39+
~~~text
40+
stack <your command here> <args> --verbose
3941
<output>
40-
```
42+
~~~
4143

4244
### Stack version
4345

44-
```
45-
$ stack --version
46+
~~~text
47+
stack --version
4648
Version 1.9.1, Git revision f9d0042c141660e1d38f797e1d426be4a99b2a3c (6168 commits) x86_64 hpack-0.31.0
47-
```
49+
~~~
4850

4951
### Method of installation
5052

.github/ISSUE_TEMPLATE/question.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ See the [upgrade instructions](http://docs.haskellstack.org/en/stable/install_an
1414

1515
### Stack version
1616

17-
```
18-
$ stack --version
17+
~~~text
18+
stack --version
1919
Version 1.9.1, Git revision f9d0042c141660e1d38f797e1d426be4a99b2a3c (6168 commits) x86_64 hpack-0.31.0
20-
```
20+
~~~
2121

2222
### Method of installation
2323

CONTRIBUTING.md

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,17 @@ You can install HLint with Stack. You might want to install it in the global
220220
project in case you run into dependency conflicts. HLint can report hints in
221221
your favourite text editor. Refer to the HLint repository for more details.
222222

223-
To install:
223+
To install, command:
224224

225-
stack install hlint
225+
~~~text
226+
stack install hlint
227+
~~~
226228

227-
Once installed, you can check your changes with:
229+
Once installed, you can check your changes with command:
228230

229-
$ ./etc/scripts/hlint.sh
231+
~~~text
232+
stack exec -- sh ./etc/scripts/hlint.sh
233+
~~~
230234

231235
## Testing
232236

@@ -236,11 +240,11 @@ be found in the
236240
folder and unit tests, in the
237241
[src/test](https://github.com/commercialhaskell/stack/tree/master/src/test)
238242
folder. Tests are written using the [Hspec](https://hspec.github.io/) framework.
239-
In order to run the full test suite, you can simply do:
243+
In order to run the full test suite, you can simply command:
240244

241-
```bash
242-
$ stack test
243-
```
245+
~~~text
246+
stack test
247+
~~~
244248

245249
The `--file-watch` is a very useful option to get quick feedback. However,
246250
running the entire test suite after each file change will slow you down. You'll
@@ -250,59 +254,59 @@ description of this follows below.
250254

251255
### Working with Unit Tests
252256

253-
If you would like to run the unit tests on their own, you can:
257+
If you would like to run the unit tests on their own, you can command:
254258

255-
```bash
256-
$ stack test stack:stack-test
257-
```
259+
~~~text
260+
stack test stack:stack-test
261+
~~~
258262

259-
Running an individual module works like this:
263+
Running an individual module works with a command like this:
260264

261-
```bash
262-
$ stack test stack:stack-test --ta "-m <PATTERN>"
263-
```
265+
~~~text
266+
stack test stack:stack-test --ta "-m <PATTERN>"
267+
~~~
264268

265269
Where `<PATTERN>` is the name of the module without `Spec.hs`.
266270

267-
You may also load tests into GHCi and run them with:
271+
You may also load tests into GHCi and run them with these command:
268272

269-
```bash
270-
$ stack ghci stack:stack-test --only-main
273+
~~~text
274+
stack ghci stack:stack-test --only-main
271275
# GHCi starting up output ...
272276
> :main -m "<PATTERN>"
273-
```
277+
~~~
274278

275279
Where again, `<PATTERN>` is the name of the module without `Spec.hs`.
276280

277281
### Working with Integration Tests
278282

279-
Running the integration tests is a little involved, you'll need to:
283+
Running the integration tests is a little involved, you'll need to command:
280284

281-
```bash
282-
$ stack build --flag stack:integration-tests stack --exec stack-integration-test
283-
```
285+
~~~text
286+
stack build --flag stack:integration-tests stack --exec stack-integration-test
287+
~~~
284288

285-
Running an individual module works like this:
289+
Running an individual module works with a command like this:
286290

287-
```bash
288-
$ stack build --flag stack:integration-tests stack --exec "stack-integration-test -m <PATTERN>"
289-
```
291+
~~~text
292+
stack build --flag stack:integration-tests stack --exec "stack-integration-test -m <PATTERN>"
293+
~~~
290294

291295
Where `<PATTERN>` is the name of the folder listed in the
292296
[test/integration/tests/](https://github.com/commercialhaskell/stack/tree/master/test/integration/tests)
293-
folder.
297+
directory.
294298

295-
You may also achieve this through GHCi with:
299+
You may also achieve this through GHCi with tihs command:
296300

297-
```bash
298-
$ stack ghci stack:stack-integration-test
301+
~~~text
302+
stack ghci stack:stack-integration-test
299303
# GHCi starting up output ...
300304
> :main -m "<PATTERN>"
301-
```
305+
~~~
302306

303307
Where again, `<PATTERN>` is the name of the folder listed in the
304308
[test/integration/tests/](https://github.com/commercialhaskell/stack/tree/master/test/integration/tests)
305-
folder.
309+
directory.
306310

307311
## Continuous integration (CI)
308312

ChangeLog.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,7 +1997,8 @@ Other enhancements:
19971997
[#1306](https://github.com/commercialhaskell/stack/issues/1306)
19981998
* Retry when downloading snapshots and package indices
19991999
* Many build options are configurable now in `stack.yaml`:
2000-
```
2000+
2001+
~~~yaml
20012002
build:
20022003
library-profiling: true
20032004
executable-profiling: true
@@ -2019,7 +2020,8 @@ Other enhancements:
20192020
no-run-benchmarks: true
20202021
reconfigure: true
20212022
cabal-verbose: true
2022-
```
2023+
~~~
2024+
20232025
* A number of URLs are now configurable, useful for firewalls. See
20242026
[#1794](https://github.com/commercialhaskell/stack/issues/1884).
20252027
* Suggest causes when executables are missing.

0 commit comments

Comments
 (0)