@@ -1334,21 +1334,22 @@ values for these fields.
1334
1334
For backwards compatibility, the old variant `hs-source-dir` is also
1335
1335
recognized.
1336
1336
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.
1345
1348
1346
1349
~~~~~~~~~~~~~~~~
1347
1350
{-# LANGUAGE CPP, MultiParamTypeClasses #-}
1348
1351
~~~~~~~~~~~~~~~~
1349
1352
1350
- Note: GHC versions prior to 6.6 do not support the `LANGUAGE` pragma.
1351
-
1352
1353
` build-tools: ` _ program list_
1353
1354
: A list of programs, possibly annotated with versions, needed to
1354
1355
build this package, e.g. ` c2hs >= 0.15, cpphs ` .If no version
0 commit comments