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
f78ba4bb
Commit
f78ba4bb
authored
9 years ago
by
Mikhail Glushenkov
Browse files
Options
Downloads
Patches
Plain Diff
Improve documentation.
See
https://github.com/haskell/cabal/issues/3198#issuecomment-190978842
.
parent
3113eb8b
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/developing-packages.markdown
+8
-4
8 additions, 4 deletions
Cabal/doc/developing-packages.markdown
with
8 additions
and
4 deletions
Cabal/doc/developing-packages.markdown
+
8
−
4
View file @
f78ba4bb
...
...
@@ -676,10 +676,11 @@ message headers.
The syntax of the value depends on the field. Field types include:
_token_, _filename_, _directory_
: Either a sequence of one or more non-space non-comma characters, or
a quoted string in Haskell 98 lexical syntax. Unless otherwise
stated, relative filenames and directories are interpreted from the
package root directory.
: Either a sequence of one or more non-space non-comma characters, or a quoted
string in Haskell 98 lexical syntax. The latter can be used for escaping
whitespace, for example: `
ghc-options: -Wall "-with-rtsopts=-T -I1"
`.
Unless otherwise stated, relative filenames and directories are interpreted
from the package root directory.
_freeform_, _URL_, _address_
: An arbitrary, uninterpreted string.
...
...
@@ -1365,6 +1366,9 @@ for these fields.
Options required only by one module may be specified by placing an
`
OPTIONS_GHC
` pragma in the source file affected.
As with many other fields, whitespace can be escaped by using Haskell string
syntax. Example: `
ghc-options: -Werror "-with-rtsopts=-T -I1" -Wall
`.
`
ghc-prof-options:
` _token list_
: Additional options for GHC when the package is built with profiling
enabled.
...
...
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