Skip to content

Commit 3f53ee2

Browse files
committed
Document 'extensions' field replacements
Resolves #2401.
1 parent a2aaf2b commit 3f53ee2

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

Cabal/doc/developing-packages.markdown

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,21 +1334,22 @@ values for these fields.
13341334
For backwards compatibility, the old variant `hs-source-dir` is also
13351335
recognized.
13361336

1337-
`extensions:` _identifier list_
1338-
: A list of Haskell extensions used by every module. Extension names
1339-
are the constructors of the [Extension][extension] type. These
1340-
determine corresponding compiler options. In particular, `CPP` specifies that
1341-
Haskell source files are to be preprocessed with a C preprocessor.
1342-
1343-
Extensions used only by one module may be specified by placing a
1344-
`LANGUAGE` pragma in the source file affected, e.g.:
1337+
`default-extensions:` _identifier list_
1338+
: A list of Haskell extensions used by every module. These determine
1339+
corresponding compiler options enabled for all files. Extension names are
1340+
the constructors of the [Extension][extension] type. For example, `CPP`
1341+
specifies that Haskell source files are to be preprocessed with a C
1342+
preprocessor.
1343+
1344+
`other-extensions:` _identifier list_
1345+
: A list of Haskell extensions used by some (but not necessarily all) modules.
1346+
From GHC version 6.6 onward, these may be specified by placing a `LANGUAGE`
1347+
pragma in the source files affected e.g.
13451348

13461349
~~~~~~~~~~~~~~~~
13471350
{-# LANGUAGE CPP, MultiParamTypeClasses #-}
13481351
~~~~~~~~~~~~~~~~
13491352

1350-
Note: GHC versions prior to 6.6 do not support the `LANGUAGE` pragma.
1351-
13521353
`build-tools:` _program list_
13531354
: A list of programs, possibly annotated with versions, needed to
13541355
build this package, e.g. `c2hs >= 0.15, cpphs`.If no version

0 commit comments

Comments
 (0)