sandwich-hedgehog 0.1.2.0 → 0.1.3.0
raw patch · 3 files changed
+14/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +7/−0
- sandwich-hedgehog.cabal +3/−3
- src/Test/Sandwich/Hedgehog.hs +4/−0
ChangeLog.md view
@@ -1,5 +1,12 @@ # Changelog for sandwich-hedgehog +## Unreleased++## 0.1.3.0++* Fix bug-reports URL+* Fix build for hedgehog < 1.2+ ## 0.1.2.0 * Support propertySkip in hedgehog
sandwich-hedgehog.cabal view
@@ -5,12 +5,12 @@ -- see: https://github.com/sol/hpack name: sandwich-hedgehog-version: 0.1.2.0+version: 0.1.3.0 synopsis: Sandwich integration with Hedgehog description: Please see the <https://codedownio.github.io/sandwich/docs/extensions/sandwich-hedgehog documentation>. category: Testing homepage: https://codedownio.github.io/sandwich-bug-reports: https://github.com/codedownio/sandwich-hedgehog/issues+bug-reports: https://github.com/codedownio/sandwich/issues author: Tom McLaughlin maintainer: tom@codedown.io copyright: 2023 Tom McLaughlin@@ -22,7 +22,7 @@ source-repository head type: git- location: https://github.com/codedownio/sandwich-hedgehog+ location: https://github.com/codedownio/sandwich library exposed-modules:
src/Test/Sandwich/Hedgehog.hs view
@@ -45,7 +45,9 @@ , modifyShrinkLimit , modifyShrinkRetries , modifyTerminationCriteria+#if MIN_VERSION_hedgehog(1,2,0) , modifySkip+#endif , modifySize , modifySeed @@ -239,11 +241,13 @@ ) => (Maybe TerminationCriteria -> Maybe TerminationCriteria) -> SpecFree (HedgehogContextLabel context) m () -> SpecFree context m () modifyTerminationCriteria f = modifyArgs $ \args -> args { hedgehogTerminationCriteria = f (hedgehogTerminationCriteria args) } +#if MIN_VERSION_hedgehog(1,2,0) -- | Modify the 'Skip' for the given spec. modifySkip :: ( HasHedgehogContext context, Monad m ) => (Maybe Skip -> Maybe Skip) -> SpecFree (HedgehogContextLabel context) m () -> SpecFree context m () modifySkip f = modifyArgs $ \args -> args { hedgehogSkip = f (hedgehogSkip args) }+#endif addCommandLineOptions :: CommandLineOptions a -> HedgehogParams -> HedgehogParams addCommandLineOptions (CommandLineOptions {optHedgehogOptions=(CommandLineHedgehogOptions {..})}) baseHedgehogParams@(HedgehogParams {..}) = baseHedgehogParams {