From 10b8d17fb612bcb2b4697235868fdf7c6ede1caa Mon Sep 17 00:00:00 2001 From: Fendor Date: Fri, 4 Oct 2024 10:21:03 +0200 Subject: [PATCH] Allow-newer for baby-l4 to allow the usage of cabal repl --enable-multi-repl --- lib/haskell/cabal.project | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lib/haskell/cabal.project b/lib/haskell/cabal.project index 6b339e948..8d8163b94 100644 --- a/lib/haskell/cabal.project +++ b/lib/haskell/cabal.project @@ -36,7 +36,25 @@ source-repository-package allow-newer: compact:*, udpipe-hs:base, - gf:* + gf:*, + -- allows to use `cabal repl --enable-multi-repl`. + -- as this requires Cabal(-syntax) >= 3.12 + -- However, we don't want to allow newer Cabal and Cabal-syntax + -- in general, as we then may use `Cabal-3.12` and `Cabal-syntax-3.14` + -- which leads to terrible error messages such as: + -- + -- Error: + -- Problem with module re-exports: + -- - The module 'Distribution.Compat.Typeable' + -- is not exported by any suitable package. + -- It occurs in neither the 'exposed-modules' of this package, + -- nor any of its 'build-depends' dependencies. + -- In the stanza 'library' + -- In the package 'Cabal-3.12.1.0' + -- + baby-l4:Cabal-syntax, + baby-l4:Cabal + constraints: graphviz ==2999.20.2.0