packages feed

hspec-smallcheck 0.2.0 → 0.3.0

raw patch · 2 files changed

+4/−4 lines, 2 filesdep ~hspec

Dependency ranges changed: hspec

Files

hspec-smallcheck.cabal view
@@ -1,5 +1,5 @@ name:             hspec-smallcheck-version:          0.2.0+version:          0.3.0 license:          MIT license-file:     LICENSE copyright:        (c) 2013 Simon Hengel@@ -25,7 +25,7 @@       Test.Hspec.SmallCheck   build-depends:       base              == 4.*-    , hspec             >= 1.8+    , hspec             >= 1.10     , smallcheck        >= 1.0  test-suite spec
src/Test/Hspec/SmallCheck.hs view
@@ -12,10 +12,10 @@ property = test  instance Example (Property IO) where-  evaluateExample p c _ = do+  evaluateExample p c _ reportProgress = do     counter <- newIORef 0     let hook _ = do           modifyIORef counter succ           n <- readIORef counter-          paramsReportProgress c (n, 0)+          reportProgress (n, 0)     maybe Success (Fail . ppFailure) <$> smallCheckWithHook (paramsSmallCheckDepth c) hook p