@@ -1137,8 +1175,7 @@ The library section should contain the following fields:
Supported only in GHC 8.2 and later. A list of `module signatures <https://downloads.haskell.org/~ghc/master/users-guide/separate_compilation.html#module-signatures>`__ required by this package.
Module signatures are part of the
`Backpack <https://ghc.haskell.org/trac/ghc/wiki/Backpack>`__ extension to
Module signatures are part of the Backpack_ extension to
the Haskell module system.
Packages that do not export any modules and only export required signatures
...
...
@@ -1426,6 +1463,9 @@ build information fields (see the section on `build information`_).
:pkg-field:`hs-source-dirs`. Further, while the name of the file may
vary, the module itself must be named ``Main``.
Starting with ``cabal-version: 1.18`` this field supports
specifying a C, C++, or objC source file as the main entry point.
.. pkg-field:: scope: token
:since: 2.0
...
...
@@ -2268,6 +2308,7 @@ system-dependent values for these fields.
appropriately.
.. pkg-field:: asm-sources: filename list
:since: 2.2
A list of assembly source files to be compiled and linked with the
Haskell files.
...
...
@@ -2292,6 +2333,7 @@ system-dependent values for these fields.
when the package is loaded with GHCi.
.. pkg-field:: extra-bundled-libraries: token list
:since: 2.2
A list of libraries that are supposed to be copied from the build
directory alongside the produced Haskell libraries. Note that you
...
...
@@ -2329,6 +2371,12 @@ system-dependent values for these fields.