Bump tasty upper bound to <1.6

This commit is contained in:
Michael Walker 2023-09-11 19:44:55 +01:00
parent 30c678f5ec
commit 1c2bba5050
No known key found for this signature in database
3 changed files with 16 additions and 2 deletions

View File

@ -15,7 +15,12 @@ main = C.defaultMain (T.foldTestTree mkBench mempty tests)
-- | Turn a test tree into a list of benchmarks. -- | Turn a test tree into a list of benchmarks.
mkBench :: T.TreeFold [C.Benchmark] mkBench :: T.TreeFold [C.Benchmark]
#if MIN_VERSION_tasty(1,4,0) #if MIN_VERSION_tasty(1,5,0)
mkBench = T.trivialFold
{ T.foldSingle = \opts lbl t -> [C.bench lbl (benchTest opts t)]
, T.foldGroup = \_ lbl bs -> map (C.bgroup lbl) bs
}
#elif MIN_VERSION_tasty(1,4,0)
mkBench = T.trivialFold mkBench = T.trivialFold
{ T.foldSingle = \opts lbl t -> [C.bench lbl (benchTest opts t)] { T.foldSingle = \opts lbl t -> [C.bench lbl (benchTest opts t)]
, T.foldGroup = \_ lbl bs -> [C.bgroup lbl bs] , T.foldGroup = \_ lbl bs -> [C.bgroup lbl bs]

View File

@ -7,6 +7,15 @@ standard Haskell versioning scheme.
.. _PVP: https://pvp.haskell.org/ .. _PVP: https://pvp.haskell.org/
unreleased
----------
Miscellaneous
~~~~~~~~~~~~~
* The upper bound on :hackage:`tasty` is <1.6.
2.1.0.0 (2022-08-31) 2.1.0.0 (2022-08-31)
-------------------- --------------------

View File

@ -40,6 +40,6 @@ library
, dejafu >=2.0 && <2.5 , dejafu >=2.0 && <2.5
, random >=1.0 && <1.3 , random >=1.0 && <1.3
, tagged >=0.8 && <0.9 , tagged >=0.8 && <0.9
, tasty >=0.10 && <1.5 , tasty >=0.10 && <1.6
-- hs-source-dirs: -- hs-source-dirs:
default-language: Haskell2010 default-language: Haskell2010