Skip to content

Commit

Permalink
Changelog entry and docs update for haskell#7424
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkato committed Jun 8, 2021
1 parent 0f1f79c commit d598c74
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 10 additions & 0 deletions changelog.d/pr-7424
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
synopsis: standalone tests for cabal init
packages: cabal-install
prs: #7424
issues: #7410

description: {
- changes the behaviour of the --tests flag for cabal init,
see https://github.com/haskell/cabal/issues/7410#issuecomment-849913926
- adds a new value TestSuite for the PackageType type
}
10 changes: 6 additions & 4 deletions doc/developing-packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,22 @@ The ``cabal init --interactive`` command is interactive. If we answer
1) Executable
2) Library
3) Library and Executable
4) Test suite
Your choice?
...

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

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

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

Expand Down

0 comments on commit d598c74

Please sign in to comment.