From b6aa69282dd15740c08bbdeada4734328981ac92 Mon Sep 17 00:00:00 2001 From: Bodigrim Date: Sat, 22 Jun 2024 17:20:30 +0100 Subject: [PATCH] Add instance {Eq,Ord} RelStDev --- changelog.md | 1 + src/Test/Tasty/Bench.hs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 32003fc..812bed5 100644 --- a/changelog.md +++ b/changelog.md @@ -11,6 +11,7 @@ * Make `IO` benchmarks immune to `-fspec-constr-count` limit. * Decomission `debug` build flag. * Decomission warning when `--timeout` is absent. +* Add `instance Eq RelStDev` and `instance Ord RelStDev`. # 0.3.5 diff --git a/src/Test/Tasty/Bench.hs b/src/Test/Tasty/Bench.hs index 2ee24c9..0c7e63a 100644 --- a/src/Test/Tasty/Bench.hs +++ b/src/Test/Tasty/Bench.hs @@ -789,7 +789,7 @@ type Progress = () -- -- @since 0.2 newtype RelStDev = RelStDev Double - deriving (Show, Read, Typeable) + deriving (Eq, Ord, Show, Read, Typeable) -- | Whether to measure CPU time or wall-clock time. -- Normally 'CpuTime' is a better option (and default),