Skip to content

Commit

Permalink
Switch out criterion for tasty-bench
Browse files Browse the repository at this point in the history
Picking a build plan with both `foldable1-classes-compat` (as a local package)
and `criterion` was leading to cyclic dependencies, which `tasty-bench` avoids.
  • Loading branch information
RyanGlScott committed Sep 30, 2023
1 parent 720ef0d commit c3e72ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bench/Bench.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ module Main (main) where
import Prelude hiding (foldl1, head, last, maximum)

import Control.DeepSeq (NFData (..))
import Criterion.Main
import qualified Data.Foldable as F (Foldable)
import Data.Foldable1
import Data.List.NonEmpty (NonEmpty (..))
import Data.Semigroup (Min (..))
import Test.Tasty.Bench

#if HAS_FOLDABLE1_CONTAINERS
import Data.Tree (Tree (..))
Expand Down
4 changes: 2 additions & 2 deletions foldable1-classes-compat.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,5 @@ benchmark bench
, transformers-compat

build-depends:
criterion >=1.5.6.1 && <1.7
, deepseq >=1.3 && <1.6
tasty-bench >=0.3.5 && < 0.4
, deepseq >=1.3 && <1.6

0 comments on commit c3e72ca

Please sign in to comment.