Skip to content

doc: replace removed extensions field with default-extensions in examples#12147

Open
SAY-5 wants to merge 1 commit into
haskell:masterfrom
SAY-5:docs-default-extensions
Open

doc: replace removed extensions field with default-extensions in examples#12147
SAY-5 wants to merge 1 commit into
haskell:masterfrom
SAY-5:docs-default-extensions

Conversation

@SAY-5

@SAY-5 SAY-5 commented Jul 22, 2026

Copy link
Copy Markdown

Fixes #11984.

Two examples in doc/cabal-package-description-file.rst still used the extensions field, which was deprecated in Cabal 1.10 and removed in 3.0. Replaced both with default-extensions and gave the first example a cabal-version field.


Template B: This PR does not modify behaviour or interface

E.g. the PR only touches documentation or tests, does refactorings, etc.

Include the following checklist in your PR:

  • Patches conform to the coding conventions.
  • Is this a PR that fixes CI? If so, it will need to be backported to older cabal release branches (ask maintainers for directions).

…ples

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>

@ffaf1 ffaf1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good.

Haskell lets you preprocess your code using the C preprocessor (either
the real C preprocessor, or ``cpphs``). To enable this, add
``extensions: CPP`` to your package description. When using CPP, Cabal
``default-extensions: CPP`` to your package description. When using CPP, Cabal

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other option is adding a -XCPP language pragma to each module needing it.

@zlonast zlonast added the merge me Tell Mergify Bot to merge label Jul 24, 2026
@mergify mergify Bot added the ready and waiting Mergify is waiting out the cooldown period label Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge me Tell Mergify Bot to merge ready and waiting Mergify is waiting out the cooldown period

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation uses removed extensions field in examples

4 participants