From b374239ee16e543b7450ef5ad137b282ba81c07e Mon Sep 17 00:00:00 2001 From: Mateusz Galazyn Date: Wed, 29 Oct 2025 17:16:20 +0100 Subject: [PATCH] Replace digest dependency with crc32c Both digest and crc32c are importing crc32c_extend symbol which results in GHC linker fatal error when both dependencies are in the dependency tree. There is a PR open in digest which goes in the direction of removing crc32c C library: https://github.com/TeofilC/digest/pull/24 in favour of using crc32c haskell library directly. --- snappy-c.cabal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snappy-c.cabal b/snappy-c.cabal index a5741d7..47cb154 100644 --- a/snappy-c.cabal +++ b/snappy-c.cabal @@ -81,7 +81,7 @@ library build-depends: , bytestring >= 0.10 && < 0.13 , data-default >= 0.7 && < 0.9 - , digest >= 0.0.2 && < 0.0.3 + , crc32c >= 0.2.2 && < 0.3 , mtl >= 2.2.2 && < 2.4 extra-libraries: , snappy @@ -99,7 +99,7 @@ executable snappy-cli , bytestring >= 0.10 && < 0.13 , conduit >= 1.3.5 && < 1.4 , data-default >= 0.7 && < 0.9 - , optparse-applicative >= 0.18 && < 0.19 + , optparse-applicative >= 0.18 && < 0.20 ghc-options: -threaded -rtsopts