1 commit 357834dc4493cc955199d56bc69df7a66a0da367
2 Author: Felix Yan <felixonmars@archlinux.org>
3 Date: Wed Apr 6 22:55:57 2022 +0300
5 Fix compatibility with hedgehog 1.1.1+
7 diff --git a/nothunks.cabal b/nothunks.cabal
8 index faa70a5..3b37089 100644
11 @@ -72,10 +72,10 @@ test-suite nothunks-test
14 -- Additional dependencies
15 - , hedgehog >= 1.0 && < 1.1
16 + , hedgehog >= 1.0 && < 1.2
17 , random >= 1.1 && < 1.3
18 , tasty >= 1.3 && < 1.5
19 - , tasty-hedgehog >= 1.0 && < 1.2
20 + , tasty-hedgehog >= 1.0 && < 1.3
23 default-language: Haskell2010
24 diff --git a/test/Test/NoThunks/Class.hs b/test/Test/NoThunks/Class.hs
25 index b1eca72..d109acd 100644
26 --- a/test/Test/NoThunks/Class.hs
27 +++ b/test/Test/NoThunks/Class.hs
29 {-# LANGUAGE BangPatterns #-}
31 {-# LANGUAGE DataKinds #-}
32 {-# LANGUAGE DeriveFunctor #-}
33 {-# LANGUAGE DeriveGeneric #-}
34 @@ -649,7 +650,11 @@ unsafeCheckNFAtomically expectedNF k = withTests 1 $ property $ k $ \x -> do
35 expectFailure :: Property -> Property
36 expectFailure p = withTests 1 $ property $ do
37 report <- liftIO $ displayRegion $ \r ->
38 - checkNamed r EnableColor (Just "EXPECTED FAILURE") p
39 + checkNamed r EnableColor (Just "EXPECTED FAILURE")
40 +#if MIN_VERSION_hedgehog(1,1,1)
44 case reportStatus report of