@@ -14,8 +14,6 @@ import Control.Applicative (empty)
14
14
import Control.Monad
15
15
import Data.Aeson.Types
16
16
import Data.Function (on )
17
- import Data.Functor.Compose (Compose (.. ))
18
- import Data.Proxy (Proxy (.. ))
19
17
import Data.Time (ZonedTime (.. ), TimeZone (.. ))
20
18
import Data.Time.Clock (UTCTime (.. ))
21
19
import Functions
@@ -32,6 +30,11 @@ import Data.Version
32
30
import Test.QuickCheck (getNonNegative , listOf1 , resize )
33
31
#endif
34
32
33
+ #if !MIN_VERSION_QuickCheck(2,10,0)
34
+ import Data.Functor.Compose (Compose (.. ))
35
+ import Data.Proxy (Proxy (.. ))
36
+ #endif
37
+
35
38
import Data.Orphans ()
36
39
import Test.QuickCheck.Instances ()
37
40
#if MIN_VERSION_base(4,7,0)
@@ -188,14 +191,16 @@ instance Arbitrary Natural where
188
191
arbitrary = fromInteger . abs <$> arbitrary
189
192
#endif
190
193
194
+ #if !MIN_VERSION_QuickCheck(2,10,0)
191
195
instance Arbitrary (Proxy a ) where
192
196
arbitrary = pure Proxy
193
197
194
- instance Arbitrary a => Arbitrary (DList. DList a ) where
195
- arbitrary = DList. fromList <$> arbitrary
196
-
197
198
instance Arbitrary (f (g a )) => Arbitrary (Compose f g a ) where
198
199
arbitrary = Compose <$> arbitrary
200
+ #endif
201
+
202
+ instance Arbitrary a => Arbitrary (DList. DList a ) where
203
+ arbitrary = DList. fromList <$> arbitrary
199
204
200
205
#if !MIN_VERSION_QuickCheck(2,9,0)
201
206
instance Arbitrary a => Arbitrary (Const a b ) where
0 commit comments