Skip to content

Commit

Permalink
Merge pull request #230 from ysangkok/master
Browse files Browse the repository at this point in the history
Aeson 2.0.3 compatibility
  • Loading branch information
swamp-agr committed Feb 3, 2022
2 parents c08d9ef + d3f67b7 commit 13f0a51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Data/Swagger/Schema/ValidationSpec.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE RecordWildCards #-}
Expand Down Expand Up @@ -268,6 +269,7 @@ instance Eq ZonedTime where
-- Arbitrary instance for Data.Aeson.Value
-- ========================================================================

#if !MIN_VERSION_aeson(2,0,3)
instance Arbitrary Value where
-- Weights are almost random
-- Uniform oneof tends not to build complex objects cause of recursive call.
Expand All @@ -281,3 +283,4 @@ instance Arbitrary Value where

instance Arbitrary (KM.KeyMap Value) where
arbitrary = KM.fromHashMapText <$> arbitrary
#endif

0 comments on commit 13f0a51

Please sign in to comment.