about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2023-06-09 12:28:05 +0200
committersternenseemann <sternenseemann@systemli.org>2023-06-09 12:28:05 +0200
commit33814e224f438a60e9b59abac06b0807b49ff8e4 (patch)
tree258a922c5db74c690de243add88d348cbbd932a4 /pkgs/development/haskell-modules
parenta4133494813b60488b2c511c55e4dbafdfa20aae (diff)
downloadnixlib-33814e224f438a60e9b59abac06b0807b49ff8e4.tar
nixlib-33814e224f438a60e9b59abac06b0807b49ff8e4.tar.gz
nixlib-33814e224f438a60e9b59abac06b0807b49ff8e4.tar.bz2
nixlib-33814e224f438a60e9b59abac06b0807b49ff8e4.tar.lz
nixlib-33814e224f438a60e9b59abac06b0807b49ff8e4.tar.xz
nixlib-33814e224f438a60e9b59abac06b0807b49ff8e4.tar.zst
nixlib-33814e224f438a60e9b59abac06b0807b49ff8e4.zip
haskellPackages.statistics: disable test cases broken with QC-2.13.4
QuickCheck's generator for floating point numbers started churning out
strange numbers more frequently, causing tests that can be broken by
the imprecisions of floating point arithmetic fail reliably.

Let's disable them until the situation is resolved upstream.
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index ec8e8ae248a7..44c301ea360f 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -194,6 +194,14 @@ self: super: {
     aeson_2_1_2_1
     ;
 
+  # Disable tests failing on odd floating point numbers generated by QuickCheck 2.14.3
+  # https://github.com/haskell/statistics/issues/205
+  statistics = overrideCabal (drv: {
+    testFlags = [
+      "-p" "! (/Pearson correlation/ || /t_qr/ || /Tests for: FDistribution.1-CDF is correct/)"
+    ];
+  }) super.statistics;
+
   # There are numerical tests on random data, that may fail occasionally
   lapack = dontCheck super.lapack;