From 23fcc8720a9ef66e64b47d851d2abd68e1650f57 Mon Sep 17 00:00:00 2001 From: Artem Pelenitsyn Date: Mon, 12 Jan 2026 15:43:57 -0500 Subject: [PATCH] haskellPackages.liquidhaskell: turn off Haddock as it clashes with LiquidHaskell --- pkgs/development/haskell-modules/configuration-nix.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index ab4dd9a16f82..2fb9f0680e1b 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -936,13 +936,17 @@ builtins.intersectAttrs super { ]; }) super.liquid-fixpoint; - # overrideCabal because the tests need to execute the built executable "liquid" + # overrideCabal because + # - tests need to execute the built executable "liquid" + # - LiquidHaskell needs an SMT solver. We use Z3. + # - LiquidHaskell clash with Haddock as of now, see https://github.com/ucsd-progsys/liquidhaskell/issues/2188 liquidhaskell = overrideCabal (drv: { preCheck = '' export PATH=$PWD/dist/build/liquid:$PATH '' + (drv.preCheck or ""); libraryToolDepends = (drv.libraryToolDepends or [ ]) ++ [ pkgs.z3 ]; + doHaddock = false; }) super.liquidhaskell; # Break cyclic reference that results in an infinite recursion.