What is wrong with the docs?
The legacy parser can parse booleans for debug-info but its type is shown as integer, not integer | boolean in the users guide.
|
.. cfg-field:: debug-info: integer |
|
--enable-debug-info[=n] |
|
--disable-debug-info |
|
:synopsis: Build with debug info enabled. |
|
:since: 1.22 |
|
|
|
:default: False |
|
|
|
If the compiler (e.g., GHC 7.10 and later) supports outputting OS |
|
native debug info (e.g., DWARF), setting ``debug-info: True`` will |
|
instruct it to do so. See the GHC wiki page on :ghc-wiki:`DWARF` |
|
for more information about this feature. |
|
|
|
(This field also accepts numeric syntax, but until GHC 8.2 this didn't |
|
do anything.) |
|
|
|
The command line variant of this flag is ``--enable-debug-info`` and |
|
``--disable-debug-info``. |
What is wrong with the docs?
The legacy parser can parse booleans for
debug-infobut its type is shown asinteger, notinteger | booleanin the users guide.cabal/doc/cabal-project-description-file.rst
Lines 1099 to 1116 in 4907eec