test-sandbox-hunit 0.1.0 → 0.1.1
raw patch · 3 files changed
+11/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +3/−0
- src/Test/Sandbox/HUnit.hs +3/−2
- test-sandbox-hunit.cabal +5/−2
+ ChangeLog.md view
@@ -0,0 +1,3 @@+## 0.1.1++* Fix error for ghc710
src/Test/Sandbox/HUnit.hs view
@@ -1,5 +1,7 @@ -- author: Benjamin Surma <benjamin.surma@gmail.com> +{-# LANGUAGE ScopedTypeVariables #-}+ module Test.Sandbox.HUnit ( assertFailure , assertBool@@ -47,5 +49,4 @@ assertBool s =<< (a >> return False) `catchError` const (return True) wrap :: Sandbox () -> Sandbox ()-wrap action = action `catches` [ Handler hunitHandler ]- where hunitHandler (HUnitFailure e) = throwError e+wrap action = action `catch` (\ (HUnitFailure e :: HUnitFailure) -> throwError e)
test-sandbox-hunit.cabal view
@@ -1,5 +1,5 @@ Name: test-sandbox-hunit-Version: 0.1.0+Version: 0.1.1 Cabal-Version: >= 1.14 Category: Testing Synopsis: HUnit convenience functions for use with test-sandbox@@ -12,13 +12,16 @@ Build-Type: Simple Homepage: http://gree.github.io/haskell-test-sandbox/ Bug-Reports: https://github.com/gree/haskell-test-sandbox/issues++Extra-Source-Files: ChangeLog.md+ Source-Repository head Type: git Location: https://github.com/gree/haskell-test-sandbox Source-Repository this Type: git Location: https://github.com/gree/haskell-test-sandbox- Tag: test-sandbox-hunit_0.1.0+ Tag: test-sandbox-hunit_0.1.1 Library Exposed-modules: Test.Sandbox.HUnit