Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
0d68e983
Commit
0d68e983
authored
2 years ago
by
Artem Pelenitsyn
Committed by
ulysses4ever
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Put back docs for code-generators (fix #8887)
parent
1993128e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/cabal-package.rst
+19
-0
19 additions, 0 deletions
doc/cabal-package.rst
with
19 additions
and
0 deletions
doc/cabal-package.rst
+
19
−
0
View file @
0d68e983
...
...
@@ -1256,6 +1256,25 @@ the :pkg-field:`test-module` field.
The module exporting the ``tests`` symbol.
.. pkg-field:: code-generators
An optional list of preprocessors which can generate new modules
for use in the test-suite.
A list of executabes (possibly brought into scope by
:pkg-field:`build-tool-depends`) that are run after all other
preprocessors. These executables are invoked as so: ``exe-name
TARGETDIR [SOURCEDIRS] -- [GHCOPTIONS]``. The arguments are, in order a target dir for
output, a sequence of all source directories with source files of
local lib components that the given test stanza dependens on, and
following a double dash, all options cabal would pass to ghc for a
build. They are expected to output a newline-seperated list of
generated modules which have been written to the targetdir
(excepting, if written, the main module). This can
be used for driving doctests and other discover-style tests generated
from source code.
Example: Package using ``exitcode-stdio-1.0`` interface
"""""""""""""""""""""""""""""""""""""""""""""""""""""""
...
...
This diff is collapsed.
Click to expand it.
Artem Pelenitsyn
@ulysses4ever
mentioned in commit
cb3fe498
·
2 years ago
mentioned in commit
cb3fe498
mentioned in commit cb3fe498d786936a677de254a0f15f2fedcfc447
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment