Skip to content

Commit cb77207

Browse files
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.
1 parent 8b5f771 commit cb77207

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cabal.project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ packages:
99
-----------------------------------------------------------------------------
1010
-- Anti-constraints
1111

12-
-- make sure we don't accidentally pick up blacklisted packages
13-
constraints: foundation -none, cryptonite -none, cryptohash -none
12+
-- make sure we don't accidentally pick up forbidden packages
13+
constraints: foundation < 0, cryptonite < 0, cryptohash < 0
1414

1515
-----------------------------------------------------------------------------
1616
-- Modded lib:Cabal

0 commit comments

Comments
 (0)