From cb77207e3f86987b37447d8ea37573223a13467b Mon Sep 17 00:00:00 2001 From: Fraser Tweedale Date: Sun, 7 Jun 2026 14:45:32 +0200 Subject: [PATCH] constraints: actually forbid the unwanted packages Intent of "forbidden packages" constraint in `cabal.project` is not effected. The current constraint does not prevent inclusion in build plan - it only ensures the packages are build without the `none` flag. Change to a `< 0` version constraint to actually prevent the unwanted packages from being used. --- cabal.project | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cabal.project b/cabal.project index 5071ac32b..9f59a03ab 100644 --- a/cabal.project +++ b/cabal.project @@ -9,8 +9,8 @@ packages: ----------------------------------------------------------------------------- -- Anti-constraints --- make sure we don't accidentally pick up blacklisted packages -constraints: foundation -none, cryptonite -none, cryptohash -none +-- make sure we don't accidentally pick up forbidden packages +constraints: foundation < 0, cryptonite < 0, cryptohash < 0 ----------------------------------------------------------------------------- -- Modded lib:Cabal