haskell / haskell/cabal

Can we have `if impl(cabal <3.10)` project conditionals?

Open
#8,933 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

With the behaviour of packages in imports changing between `cabal-3.8.*` and `cabal.3.10.*` (see #8795), how can I work around this?

We have conditionals in project files but I don't see an `if impl(cabal <3.10)` in the docs.

> Conditions in cabal may case on operating system, architecture, and compiler
> SOURCE: [Conditionals and imports](https://cabal.readthedocs.io/en/stable/cabal-project.html#conditionals-and-imports)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.