Skip to content

Commit 2d5bd5e

Browse files
ptkatofendor
authored andcommitted
Changelog entry and docs update for haskell#7424
1 parent 6b6ec43 commit 2d5bd5e

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

changelog.d/pr-7424

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
synopsis: standalone tests for cabal init
2+
packages: cabal-install
3+
prs: #7424
4+
issues: #7410
5+
6+
description: {
7+
- changes the behaviour of the --tests flag for cabal init,
8+
see https://github.com/haskell/cabal/issues/7410#issuecomment-849913926
9+
- adds a new value TestSuite for the PackageType type
10+
}

doc/developing-packages.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,22 @@ The ``cabal init --interactive`` command is interactive. If we answer
4747
1) Executable
4848
2) Library
4949
3) Library and Executable
50+
4) Test suite
5051
Your choice?
5152
...
5253

5354
One of the important questions is whether the package contains a library
5455
and/or an executable. Libraries are collections of Haskell modules that
5556
can be re-used by other Haskell libraries and programs, while executables
56-
are standalone programs.
57+
are standalone programs. Test suites can both depend on a library or be
58+
standalonely generated.
5759

5860
For the moment these are the only choices. For more complex packages
59-
(e.g. a library and multiple executables or test suites) the ``.cabal``
61+
(e.g. a library and multiple executables) the ``.cabal``
6062
file can be edited afterwards.
6163

62-
After you make your selection (executable; library; or: library
63-
and executable) cabal asks us a number of questions starting with
64+
After you make your selection (executable; library; library
65+
and executable; or: test suite) cabal asks us a number of questions starting with
6466
which version of the cabal specification to use, our package's name
6567
(for example, "proglet"), and our package's version.
6668

0 commit comments

Comments
 (0)