mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-10 19:32:43 +00:00
[haskell-http-client] relax Aeson constraint to allow Aeson 1 (#12486)
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user