safe-json 1.2.1.1 → 1.2.1.2
raw patch · 3 files changed
+20/−53 lines, 3 filesdep ~aesondep ~quickcheck-instancesPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: aeson, quickcheck-instances
API changes (from Hackage documentation)
Files
- ChangeLog.md +14/−0
- safe-json.cabal +5/−5
- test/Instances.hs +1/−48
ChangeLog.md view
@@ -1,5 +1,19 @@ # Changelog for safe-json +## 1.2.1.2++* Bumped upper bound of `time` to `< 0.17`+* Bumped upper bound of `quickcheck-instances` in test suite to `< 0.5`+ (again), and removed the superfluous `Arbitrary` instances.++## 1.2.1.1++* Bumped upper bound of `time` to `< 0.16`+* Bumped upper bound of `quickcheck-instances` in test suite to `< 0.5`+ (Also added `Arbitrary` instances, but apparently built the underlying+ `QuickCheck` dependency with too low a version, because those now clash.+ Hence why this version is DEPRECATED, please use version `1.2.1.2`)+ ## 1.2.1.0 * Bumped upper bound of `containers` to `< 0.9`
safe-json.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.37.0.+-- This file has been generated from package.yaml by hpack version 0.38.1. -- -- see: https://github.com/sol/hpack name: safe-json-version: 1.2.1.1+version: 1.2.1.2 synopsis: Automatic JSON format versioning description: This library aims to make the updating of JSON formats or contents, while keeping backward compatibility, as painless as possible. The way this is achieved is through versioning and defined migration functions to migrate older (or newer) versions to the one used. .@@ -28,7 +28,7 @@ license-file: LICENSE build-type: Simple tested-with:- GHC == 9.4.8 , GHC == 9.6.7 , GHC == 9.8.4 , GHC == 9.10.3 , GHC == 9.12.2+ GHC == 9.4.8 , GHC == 9.6.7 , GHC == 9.8.4 , GHC == 9.10.3 , GHC == 9.12.4 , GHC == 9.14.1 extra-source-files: README.md ChangeLog.md@@ -73,7 +73,7 @@ , tasty-hunit >=0.9.2 && <0.11 , tasty-quickcheck >=0.8.4 && <0.12 , text >=1.2.3 && <2.2- , time >=1.6.0.1 && <1.16+ , time >=1.6.0.1 && <1.17 , unordered-containers >=0.2.9 && <0.3 , uuid-types >=1.0.3 && <1.1 , vector >=0.12.0.1 && <0.14@@ -113,7 +113,7 @@ , tasty-quickcheck , temporary >=1.2.1.1 , text >=1.2.3 && <2.2- , time >=1.6.0.1 && <1.16+ , time >=1.6.0.1 && <1.17 , unordered-containers >=0.2.9 && <0.3 , uuid >=1.3.13 , uuid-types >=1.0.3 && <1.1
test/Instances.hs view
@@ -15,28 +15,11 @@ #endif import Data.DList as DList (DList, fromList, toList) import Data.Int (Int64)-#if MIN_VERSION_quickcheck_instances(0,4,0)-import Data.List.NonEmpty as NonEmpty (NonEmpty, fromList, toList)-import Data.Semigroup as Semigroup (First (..), Last (..), Max (..), Min (..))-#endif import Data.Time (NominalDiffTime) import Data.Time.Clock.POSIX (posixSecondsToUTCTime) import qualified Data.Vector.Primitive as VP-#if MIN_VERSION_quickcheck_instances(0,4,0)-import Numeric.Natural (Natural)-#endif -import Test.Tasty.QuickCheck (- Arbitrary (..),-#if MIN_VERSION_quickcheck_instances(0,4,0)- Arbitrary1 (..),- arbitrary1,- arbitrarySizedNatural,- listOf1,- shrink1,- shrinkIntegral,-#endif- )+import Test.Tasty.QuickCheck (Arbitrary (..)) #if !MIN_VERSION_aeson(2,0,3) import Test.Tasty.QuickCheck (oneof, resize) import Test.QuickCheck.Arbitrary.Generic (genericShrink)@@ -105,34 +88,4 @@ String{} `compare` _ = LT Array{} `compare` Object{} = LT _ `compare` _ = GT-#endif--#if MIN_VERSION_quickcheck_instances(0,4,0)-instance Arbitrary1 NonEmpty where- liftArbitrary arb = NonEmpty.fromList <$> listOf1 arb- liftShrink shr xs = [ NonEmpty.fromList xs' | xs' <- liftShrink shr (NonEmpty.toList xs), not (null xs') ]--instance Arbitrary a => Arbitrary (NonEmpty a) where- arbitrary = arbitrary1- shrink = shrink1--instance Arbitrary a => Arbitrary (Semigroup.Min a) where- arbitrary = fmap Semigroup.Min arbitrary- shrink = map Semigroup.Min . shrink . Semigroup.getMin--instance Arbitrary a => Arbitrary (Semigroup.Max a) where- arbitrary = fmap Semigroup.Max arbitrary- shrink = map Semigroup.Max . shrink . Semigroup.getMax--instance Arbitrary a => Arbitrary (Semigroup.First a) where- arbitrary = fmap Semigroup.First arbitrary- shrink = map Semigroup.First . shrink . Semigroup.getFirst--instance Arbitrary a => Arbitrary (Semigroup.Last a) where- arbitrary = fmap Semigroup.Last arbitrary- shrink = map Semigroup.Last . shrink . Semigroup.getLast--instance Arbitrary Natural where- arbitrary = arbitrarySizedNatural- shrink = shrinkIntegral #endif