hjsonpointer 1.4.0 → 1.5.0
raw patch · 4 files changed
+15/−8 lines, 4 filesdep ~QuickCheckdep ~aesondep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: QuickCheck, aeson, base, hspec
API changes (from Hackage documentation)
- JSONPointer: instance Data.Semigroup.Semigroup JSONPointer.Pointer
- JSONPointer: instance Test.QuickCheck.Arbitrary.Arbitrary JSONPointer.Pointer
- JSONPointer: instance Test.QuickCheck.Arbitrary.Arbitrary JSONPointer.Token
+ JSONPointer: instance GHC.Base.Semigroup JSONPointer.Pointer
Files
- changelog.md +4/−0
- hjsonpointer.cabal +2/−2
- src/JSONPointer.hs +1/−5
- test/Unit.hs +8/−1
changelog.md view
@@ -1,3 +1,7 @@+# 1.5.0+++ Drop QuickCheck dependency (thanks @mmhat !).+ # 1.4.0 + Enable GHC 8.4 (thanks @4e6 !).
hjsonpointer.cabal view
@@ -1,5 +1,5 @@ name: hjsonpointer-version: 1.4.0+version: 1.5.0 synopsis: JSON Pointer library homepage: https://github.com/seagreen/hjsonpointer license: MIT@@ -27,7 +27,6 @@ base >= 4.6 && < 5 , aeson >= 0.7 , hashable >= 1.2- , QuickCheck >= 2.8 , unordered-containers >= 0.2 , text >= 1.2 , vector >= 0.10@@ -43,6 +42,7 @@ OverloadedStrings ghc-options: -Wall+ -fno-warn-orphans other-modules: Example build-depends: aeson
src/JSONPointer.hs view
@@ -13,7 +13,6 @@ import qualified Data.Text as T import qualified Data.Vector as V import GHC.Generics (Generic)-import Test.QuickCheck import Text.Read (readMaybe) --------------------------------------------------@@ -37,7 +36,7 @@ newtype Pointer = Pointer { _unPointer :: [Token] }- deriving (Eq, Show, Semigroup, Monoid, Generic, Arbitrary)+ deriving (Eq, Show, Semigroup, Monoid, Generic) instance HA.Hashable Pointer @@ -62,9 +61,6 @@ deriving (Eq, Show, Generic) instance HA.Hashable Token--instance Arbitrary Token where- arbitrary = Token . T.pack <$> arbitrary -- | This escapes @"/"@ (because it's the token separator character). --
test/Unit.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE StandaloneDeriving #-} module Main where @@ -13,9 +15,14 @@ import Network.HTTP.Types.URI (urlDecode) import Test.Hspec-import Test.QuickCheck (property)+import Test.QuickCheck (Arbitrary(..), property) import qualified Example++deriving instance Arbitrary JP.Pointer++instance Arbitrary JP.Token where+ arbitrary = JP.Token . T.pack <$> arbitrary main :: IO () main = hspec $ do