@@ -1623,7 +1623,7 @@ system-dependent values for these fields.
16231623 The subtle but important difference in signaling allows tooling to
16241624 treat explicitly expressed ``< ``-style constraints and inferred
16251625 (``^>= ``-style) upper bounds differently. For instance,
1626- :option: ` -- allow-newer `'s ``^ ``-modifier allows to relax only
1626+ :cfg-field: ` allow-newer `'s ``^ ``-modifier allows to relax only
16271627 ``^>= ``-style bounds while leaving explicitly stated
16281628 ``< ``-constraints unaffected.
16291629
@@ -1725,6 +1725,7 @@ system-dependent values for these fields.
17251725 compiled twice, once as part of the library and again for the executable.
17261726
17271727.. pkg-field :: default-extensions: identifier list
1728+ :since: 1.12
17281729
17291730 A list of Haskell extensions used by every module. These determine
17301731 corresponding compiler options enabled for all files. Extension
@@ -1734,6 +1735,7 @@ system-dependent values for these fields.
17341735 to be preprocessed with a C preprocessor.
17351736
17361737.. pkg-field :: other-extensions: identifier list
1738+ :since: 1.12
17371739
17381740 A list of Haskell extensions used by some (but not necessarily all)
17391741 modules. From GHC version 6.6 onward, these may be specified by
@@ -1761,6 +1763,16 @@ system-dependent values for these fields.
17611763 for information only, but it is recommended to replicate them in
17621764 :pkg-field: `other-extensions ` declarations.
17631765
1766+ .. pkg-field :: default-language: identifier
1767+ :since: 1.12
1768+
1769+ TBW
1770+
1771+ .. pkg-field :: other-languages: identifier
1772+ :since: 1.12
1773+
1774+ TBW
1775+
17641776.. pkg-field :: extensions: identifier list
17651777 :deprecated: 1.12
17661778 :removed: 3.0
@@ -1941,6 +1953,18 @@ system-dependent values for these fields.
19411953 ones specified via :pkg-field: `ghc-options `, and are passed to GHC during
19421954 both the compile and link phases.
19431955
1956+ .. pkg-field :: ghcjs-options: token list
1957+
1958+ Like :pkg-field: `ghc-options ` but applies to GHCJS
1959+
1960+ .. pkg-field :: ghcjs-prof-options: token list
1961+
1962+ Like :pkg-field: `ghc-prof-options ` but applies to GHCJS
1963+
1964+ .. pkg-field :: ghcjs-shared-options: token list
1965+
1966+ Like :pkg-field: `ghc-shared-options ` but applies to GHCJS
1967+
19441968.. pkg-field :: includes: filename list
19451969
19461970 A list of header files to be included in any compilations via C.
@@ -2057,6 +2081,14 @@ system-dependent values for these fields.
20572081
20582082 A list of directories to search for libraries.
20592083
2084+ .. pkg-field :: extra-library-flavours: notsure
2085+
2086+ TBW
2087+
2088+ .. pkg-field :: extra-dynamic-library-flavours: notsure
2089+
2090+ TBW
2091+
20602092.. pkg-field :: cc-options: token list
20612093
20622094 Command-line arguments to be passed to the C compiler. Since the
@@ -2616,6 +2648,12 @@ Starting with Cabal-2.2 it's possible to use common build info stanzas.
26162648
26172649 The name `import ` was chosen, because there is ``includes `` field.
26182650
2651+ .. pkg-section :: None
2652+
2653+ .. pkg-field :: import: token-list
2654+
2655+ TBW
2656+
26192657Source Repositories
26202658^^^^^^^^^^^^^^^^^^^
26212659
@@ -2883,6 +2921,8 @@ is to distinguish ``Cabal < 2.0`` from ``Cabal >= 2.0``.
28832921 Autogenerated modules and includes
28842922----------------------------------
28852923
2924+ .. pkg-section :: None
2925+
28862926Modules that are built automatically at setup, created with a custom
28872927setup script, must appear on :pkg-field: `other-modules ` for the library,
28882928executable, test-suite or benchmark stanzas or also on
@@ -2933,6 +2973,18 @@ Right now :pkg-field:`executable:main-is` modules are not supported on
29332973 (e.g. by a ``configure `` script). Autogenerated header files are not
29342974 packaged by ``sdist `` command.
29352975
2976+ Virtual modules
2977+ ---------------
2978+
2979+ TBW
2980+
2981+ .. pkg-field :: virtual-modules: module list
2982+ :since: 2.2
2983+
2984+ TBW
2985+
2986+
2987+
29362988Accessing data files from package code
29372989--------------------------------------
29382990
0 commit comments