Closed
Description
On two separate occasions I've hit an issue with conditionals in cabal.project
, which I nevertheless cannot reliably reproduce after cabal clean
. Thus this ticket is likely for future reference only, maybe someone will be more lucky / persistent.
The issue I witnessed is that
if(impl(ghc >= 9.6))
section in cabal.project
was ignored by cabal build -w ghc-9.6
. The necessary (but not sufficient) preconditions seem to be that ghc
in PATH
is ghc-9.4
and there was a successful cabal build
before (implicitly with GHC 9.4).