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
3f53ee2e
Commit
3f53ee2e
authored
9 years ago
by
Angus Lepper
Browse files
Options
Downloads
Patches
Plain Diff
Document 'extensions' field replacements
Resolves #2401.
parent
a2aaf2b9
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
+11
-10
11 additions, 10 deletions
Cabal/doc/developing-packages.markdown
with
11 additions
and
10 deletions
Cabal/doc/developing-packages.markdown
+
11
−
10
View file @
3f53ee2e
...
...
@@ -1334,21 +1334,22 @@ values for these fields.
For backwards compatibility, the old variant `
hs-source-dir
` is also
recognized.
`
extensions:
` _identifier list_
: A list of Haskell extensions used by every module. Extension names
are the constructors of the [Extension][extension] type. These
determine corresponding compiler options. In particular, `
CPP
` specifies that
Haskell source files are to be preprocessed with a C preprocessor.
Extensions used only by one module may be specified by placing a
`
LANGUAGE
` pragma in the source file affected, e.g.:
`
default-extensions:
` _identifier list_
: A list of Haskell extensions used by every module. These determine
corresponding compiler options enabled for all files. Extension names are
the constructors of the [Extension][extension] type. For example, `
CPP
`
specifies that Haskell source files are to be preprocessed with a C
preprocessor.
`
other-extensions:
` _identifier list_
: A list of Haskell extensions used by some (but not necessarily all) modules.
From GHC version 6.6 onward, these may be specified by placing a `
LANGUAGE
`
pragma in the source files affected e.g.
~~~~~~~~~~~~~~~~
{-# LANGUAGE CPP, MultiParamTypeClasses #-}
~~~~~~~~~~~~~~~~
Note: GHC versions prior to 6.6 do not support the `
LANGUAGE
` pragma.
`
build-tools:
` _program list_
: A list of programs, possibly annotated with versions, needed to
build this package, e.g. `
c2hs >= 0.15, cpphs
`.If no version
...
...
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