[haskell-http-client] relax Aeson constraint to allow Aeson 1 (#12486)

This commit is contained in:
Jon Schoning
2022-05-27 23:22:09 -05:00
committed by GitHub
parent e823290c8f
commit 078232acb5
12 changed files with 585 additions and 562 deletions

View File

@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-unused-imports -fno-warn-unused-matches #-}
module Instances where
@@ -52,9 +53,12 @@ instance Arbitrary Date where
arbitrary = Date <$> arbitrary
shrink (Date xs) = Date <$> shrink xs
#if MIN_VERSION_aeson(2,0,0)
#else
-- | A naive Arbitrary instance for A.Value:
-- instance Arbitrary A.Value where
-- arbitrary = arbitraryValue
instance Arbitrary A.Value where
arbitrary = arbitraryValue
#endif
arbitraryValue :: Gen A.Value
arbitraryValue =