safe-json 1.2.0.2 → 1.2.1.0
raw patch · 3 files changed
+14/−7 lines, 3 filesdep ~containersdep ~text
Dependency ranges changed: containers, text
Files
- ChangeLog.md +6/−0
- safe-json.cabal +4/−4
- test/Types.hs +4/−3
ChangeLog.md view
@@ -1,5 +1,11 @@ # Changelog for safe-json +## 1.2.1.0++* Bumped upper bound of `containers` to `< 0.9`+* Adjusted test modules to build with `text-2.1.2`+* Dropped testing with GHC `9.0.2`+ ## 1.2.0.2 * Make the test build with `quickcheck-instances-0.3.32`
safe-json.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: safe-json-version: 1.2.0.2+version: 1.2.1.0 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.0.2 , GHC == 9.2.8 , GHC == 9.4.8 , GHC == 9.6.6 , GHC == 9.8.3 , GHC == 9.10.1+ GHC == 9.2.8 , GHC == 9.4.8 , GHC == 9.6.6 , GHC == 9.8.4 , GHC == 9.10.1 extra-source-files: README.md ChangeLog.md@@ -65,7 +65,7 @@ aeson >=1.4.1 && <2.3 , base >=4.9 && <5 , bytestring >=0.10.8.1 && <1- , containers >=0.5.7.1 && <0.8+ , containers >=0.5.7.1 && <0.9 , dlist >=0.8.0.3 && <2 , hashable >=1.2.6.1 && <1.6 , scientific >=0.3.5.2 && <0.4@@ -102,7 +102,7 @@ build-depends: base >=4.9 && <5 , bytestring >=0.10.8.1 && <1- , containers >=0.5.7.1 && <0.8+ , containers >=0.5.7.1 && <0.9 , dlist >=0.8.0.3 && <2 , hashable >=1.2.6.1 && <1.6 , quickcheck-instances >=0.3.16 && <0.4
test/Types.hs view
@@ -13,7 +13,8 @@ #else import Data.Monoid ((<>)) #endif-import Data.Text as T+import Data.Text (Text)+import qualified Data.Text as T import Data.Time (UTCTime) import Data.Time.Clock.POSIX (posixSecondsToUTCTime) import Data.UUID as UUID@@ -83,11 +84,11 @@ instance Migrate Version1 where type MigrateFrom Version1 = NoVersion- migrate (NoVersion i) = Version1 . pack . show $ i+ migrate (NoVersion i) = Version1 . T.pack . show $ i instance Migrate (Reverse Version1) where type MigrateFrom (Reverse Version1) = Version2- migrate (Version2 ts) = Reverse . Version1 $ intercalate ", " ts+ migrate (Version2 ts) = Reverse . Version1 $ T.intercalate ", " ts newtype Version2 = Version2 [Text] deriving (Eq, Show)