Skip to content
Snippets Groups Projects
Commit 3f53ee2e authored by Angus Lepper's avatar Angus Lepper
Browse files

Document 'extensions' field replacements

Resolves #2401.
parent a2aaf2b9
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment