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
a23e8ac1
Commit
a23e8ac1
authored
6 years ago
by
Herbert Valerio Riedel
Browse files
Options
Downloads
Patches
Plain Diff
User-guide: basic description of source-repo-package stanza [ci skip]
parent
4feb3cf1
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
Cabal/doc/nix-local-build.rst
+35
-3
35 additions, 3 deletions
Cabal/doc/nix-local-build.rst
with
35 additions
and
3 deletions
Cabal/doc/nix-local-build.rst
+
35
−
3
View file @
a23e8ac1
...
...
@@ -716,9 +716,7 @@ project are:
There is no command line variant of this field.
[STRIKEOUT:There is also a stanza ``source-repository-package`` for
specifying packages from an external version control.] (Not
implemented.)
All local packages are *vendored*, in the sense that if other packages
(including external ones from Hackage) depend on a package with the name
...
...
@@ -752,6 +750,9 @@ format:
Formally, the format described by the following BNF:
.. todo::
convert globbing grammar to proper ABNF_ syntax
.. code-block:: abnf
FilePathGlob ::= FilePathRoot FilePathGlobRel
...
...
@@ -769,12 +770,43 @@ Formally, the format described by the following BNF:
| "\\" [*{},] # escaped reserved character
| "{" Glob "," ... "," Glob "}" # union (match any of these)
Specifying Packages from Remote Version Control Locations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Starting with Cabal 2.4, there is now a stanza
``source-repository-package`` for specifying packages from an external
version control which supports the following fields:
- :pkg-field:`source-repository:type`
- :pkg-field:`source-repository:location`
- :pkg-field:`source-repository:tag`
- :pkg-field:`source-repository:subdir`
A simple example is shown below:
.. code-block:: cabal
packages: .
source-repository-package
type: git
location: https://github.com/hvr/HsYAML.git
tag: e70cf0c171c9a586b62b3f75d72f1591e4e6aaa1
source-repository-package
type: git
location: https://github.com/well-typed/cborg
tag: 3d274c14ca3077c3a081ba7ad57c5182da65c8c1
subdir: cborg
Global configuration options
----------------------------
The following top-level configuration options are not specific to any
package, and thus apply globally:
.. cfg-field:: verbose: nat
--verbose=n, -vn
:synopsis: Build verbosity level.
...
...
This diff is collapsed.
Click to expand it.
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