hspec-golden-aeson 0.4.0.0 → 0.5.0.0
raw patch · 3 files changed
+6/−6 lines, 3 filesdep ~quickcheck-arbitrary-adt
Dependency ranges changed: quickcheck-arbitrary-adt
Files
- hspec-golden-aeson.cabal +3/−3
- src/Test/Aeson/GenericSpecs.hs +2/−2
- src/Test/Aeson/Internal/ADT/RoundtripSpecs.hs +1/−1
hspec-golden-aeson.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: hspec-golden-aeson-version: 0.4.0.0+version: 0.5.0.0 synopsis: Use tests to monitor changes in Aeson serialization description: Use tests to monitor changes in Aeson serialization category: Testing@@ -24,7 +24,7 @@ library hs-source-dirs: src- ghc-options: -Wall+ ghc-options: -Wall -Wredundant-constraints build-depends: base >= 4.7 && < 5 , aeson@@ -34,7 +34,7 @@ , filepath , hspec , random- , quickcheck-arbitrary-adt >= 0.2.0.0+ , quickcheck-arbitrary-adt >= 0.3.0.0 , QuickCheck , transformers exposed-modules:
src/Test/Aeson/GenericSpecs.hs view
@@ -77,14 +77,14 @@ -- sampleSize is used only when creating the golden files. When they are -- compared, the sampleSize is derived from the file. roundtripAndGoldenADTSpecs :: forall a.- (ToADTArbitrary a, Eq a, Show a, ToJSON a, FromJSON a)+ (Arbitrary a, ToADTArbitrary a, Eq a, Show a, ToJSON a, FromJSON a) => Proxy a -> Spec roundtripAndGoldenADTSpecs proxy = roundtripAndGoldenADTSpecsWithSettings defaultSettings proxy -- | 'roundtripAndGoldenADTSpecs' with custom settings. roundtripAndGoldenADTSpecsWithSettings :: forall a.- (ToADTArbitrary a, Eq a, Show a, ToJSON a, FromJSON a)+ (Arbitrary a, ToADTArbitrary a, Eq a, Show a, ToJSON a, FromJSON a) => Settings -> Proxy a -> Spec roundtripAndGoldenADTSpecsWithSettings settings proxy = do roundtripADTSpecs proxy
src/Test/Aeson/Internal/ADT/RoundtripSpecs.hs view
@@ -37,7 +37,7 @@ -- - make sure that the result is the same as the value it started with -- using 'Eq'. roundtripADTSpecs :: forall a.- (ToADTArbitrary a, Eq a, Show a, ToJSON a, FromJSON a)+ (Arbitrary a, ToADTArbitrary a, Eq a, Show a, ToJSON a, FromJSON a) => Proxy a -> Spec roundtripADTSpecs proxy = genericAesonRoundtripADTWithNote proxy Nothing