From 8484050d16672a5a178eaab736a69a460c66e19d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Wed, 13 Nov 2024 11:50:55 +0100 Subject: [PATCH] Constraint versions --- cabal.project | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/cabal.project b/cabal.project index 1864d105f..4c7baef74 100644 --- a/cabal.project +++ b/cabal.project @@ -57,3 +57,39 @@ write-ghc-environment-files: always -- IMPORTANT -- Do NOT add more source-repository-package stanzas here unless they are strictly -- temporary! Please read the section in CONTRIBUTING about updating dependencies. + +constraints: + -- Avoids this compilation issue: + -- + -- src/PlutusLedgerApi/Common/Eval.hs:117:34: error: + -- Ambiguous occurrence 'show' + -- + -- which is caused by plutus-ledger-api depending on text 2.1.1 at the time of writing, + -- whereas text 2.1.2 is available in our hackage snapshot. + -- So this can be removed when plutus-ledger-api starts depending on text>=2.1.2 + text < 2.1.2 + -- Avoid this compilation issue: + -- + -- Duplicate instance declarations: + -- > instance (VP.Prim e, Arbitrary e) => Arbitrary (VP.Vector e) + -- > -- Defined at testlib/Test/Cardano/Ledger/Binary/Arbitrary.hs:152:10 + -- > instance (VP.Prim a, Arbitrary a) => Arbitrary (VP.Vector a) + -- > -- Defined in ‘Test.QuickCheck.Instances.Vector’ + -- + -- which is caused by cardano-ledger-binary depending on quickcheck-instances 0.3.31 at the time of writing, + -- whereas quickcheck-instances 0.3.32 is available in our hackage snapshot. + -- So this can be removed when cardano-ledger-binary starts depending on quickcheck-instances>=0.3.32 + , quickcheck-instances < 0.3.32 + -- Avoids this compilation issue + -- + -- > src/Cardano/Ledger/Orphans.hs:87:10: error: [GHC-59692] + -- > Duplicate instance declarations: + -- > instance Default Bool + -- > -- Defined at src/Cardano/Ledger/Orphans.hs:87:10 + -- > instance [safe] Default Bool + -- > -- Defined in ‘data-default-0.8.0.0:Data.Default.Internal’ + -- + -- which is caused by cardano-ledger-core depending on deta-default 0.7.1.1 at the time of writing, + -- whereas data-default 0.8.0.0 is available in our hackage snapshot. + -- So this can be removed when cardano-ledger-core starts depending on data-default>=0.8.0.0 + , data-default < 0.8.0.0