@@ -301,6 +301,8 @@ instance Eq ZonedTime where
301301-- Arbitrary instance for Data.Aeson.Value
302302-- ========================================================================
303303
304+-- These instances were introduces in aeson upstream in 2.0.3
305+#if !MIN_VERSION_aeson(2,0,3)
304306instance Arbitrary Value where
305307 -- Weights are almost random
306308 -- Uniform oneof tends not to build complex objects cause of recursive call.
@@ -319,3 +321,4 @@ instance Arbitrary v => Arbitrary (KeyMap.KeyMap v) where
319321instance Arbitrary Key.Key where
320322 arbitrary = Key.fromText <$> arbitrary
321323#endif
324+#endif