@@ -1623,7 +1623,7 @@ system-dependent values for these fields.
1623
1623
The subtle but important difference in signaling allows tooling to
1624
1624
treat explicitly expressed ``< ``-style constraints and inferred
1625
1625
(``^>= ``-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
1627
1627
``^>= ``-style bounds while leaving explicitly stated
1628
1628
``< ``-constraints unaffected.
1629
1629
@@ -1725,6 +1725,7 @@ system-dependent values for these fields.
1725
1725
compiled twice, once as part of the library and again for the executable.
1726
1726
1727
1727
.. pkg-field :: default-extensions: identifier list
1728
+ :since: 1.12
1728
1729
1729
1730
A list of Haskell extensions used by every module. These determine
1730
1731
corresponding compiler options enabled for all files. Extension
@@ -1734,6 +1735,7 @@ system-dependent values for these fields.
1734
1735
to be preprocessed with a C preprocessor.
1735
1736
1736
1737
.. pkg-field :: other-extensions: identifier list
1738
+ :since: 1.12
1737
1739
1738
1740
A list of Haskell extensions used by some (but not necessarily all)
1739
1741
modules. From GHC version 6.6 onward, these may be specified by
@@ -1761,6 +1763,16 @@ system-dependent values for these fields.
1761
1763
for information only, but it is recommended to replicate them in
1762
1764
:pkg-field: `other-extensions ` declarations.
1763
1765
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
+
1764
1776
.. pkg-field :: extensions: identifier list
1765
1777
:deprecated: 1.12
1766
1778
:removed: 3.0
@@ -1941,6 +1953,18 @@ system-dependent values for these fields.
1941
1953
ones specified via :pkg-field: `ghc-options `, and are passed to GHC during
1942
1954
both the compile and link phases.
1943
1955
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
+
1944
1968
.. pkg-field :: includes: filename list
1945
1969
1946
1970
A list of header files to be included in any compilations via C.
@@ -2057,6 +2081,14 @@ system-dependent values for these fields.
2057
2081
2058
2082
A list of directories to search for libraries.
2059
2083
2084
+ .. pkg-field :: extra-library-flavours: notsure
2085
+
2086
+ TBW
2087
+
2088
+ .. pkg-field :: extra-dynamic-library-flavours: notsure
2089
+
2090
+ TBW
2091
+
2060
2092
.. pkg-field :: cc-options: token list
2061
2093
2062
2094
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.
2616
2648
2617
2649
The name `import ` was chosen, because there is ``includes `` field.
2618
2650
2651
+ .. pkg-section :: None
2652
+
2653
+ .. pkg-field :: import: token-list
2654
+
2655
+ TBW
2656
+
2619
2657
Source Repositories
2620
2658
^^^^^^^^^^^^^^^^^^^
2621
2659
@@ -2883,6 +2921,8 @@ is to distinguish ``Cabal < 2.0`` from ``Cabal >= 2.0``.
2883
2921
Autogenerated modules and includes
2884
2922
----------------------------------
2885
2923
2924
+ .. pkg-section :: None
2925
+
2886
2926
Modules that are built automatically at setup, created with a custom
2887
2927
setup script, must appear on :pkg-field: `other-modules ` for the library,
2888
2928
executable, test-suite or benchmark stanzas or also on
@@ -2933,6 +2973,18 @@ Right now :pkg-field:`executable:main-is` modules are not supported on
2933
2973
(e.g. by a ``configure `` script). Autogenerated header files are not
2934
2974
packaged by ``sdist `` command.
2935
2975
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
+
2936
2988
Accessing data files from package code
2937
2989
--------------------------------------
2938
2990
0 commit comments