HUnit 1.2.5.1 → 1.2.5.2
raw patch · 3 files changed
+16/−4 lines, 3 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- HUnit.cabal +3/−2
- HUnit.cabal.tests +3/−2
- Test/HUnit/Lang.hs +10/−0
HUnit.cabal view
@@ -1,5 +1,5 @@ Name: HUnit-Version: 1.2.5.1+Version: 1.2.5.2 Cabal-Version: >= 1.8 License: BSD3 License-File: LICENSE@@ -13,8 +13,9 @@ HUnit is a unit testing framework for Haskell, inspired by the JUnit tool for Java, see: <http://www.junit.org>. Tested-With:- GHC == 7.0.4 GHC == 7.4.1+ GHC == 7.4.2+ GHC == 7.7 Build-Type: Simple Extra-Source-Files: HUnit.cabal.hugs
HUnit.cabal.tests view
@@ -6,7 +6,7 @@ -- To use this file, simply copy it to HUnit.cabal, then build as normal. You -- may rename the existing version of HUnit.cabal first, if you like. Name: HUnit-Version: 1.2.5.1+Version: 1.2.5.2 Cabal-Version: >= 1.8 License: BSD3 License-File: LICENSE@@ -20,8 +20,9 @@ HUnit is a unit testing framework for Haskell, inspired by the JUnit tool for Java, see: <http://www.junit.org>. Tested-With:- GHC == 7.0.4 GHC == 7.4.1+ GHC == 7.4.2+ GHC == 7.7 Build-Type: Simple Extra-Source-Files: HUnit.cabal.hugs
Test/HUnit/Lang.hs view
@@ -1,6 +1,11 @@ -- | This module abstracts the differences between implementations of -- Haskell (e.g., GHC, Hugs, and NHC). +{-# LANGUAGE CPP #-} +#if __GLASGOW_HASKELL__ >= 707 +{-# LANGUAGE DeriveDataTypeable #-} +#endif + module Test.HUnit.Lang ( Assertion, @@ -75,6 +80,9 @@ #if defined(__GLASGOW_HASKELL__) || defined(__HUGS__) data HUnitFailure = HUnitFailure String +#if __GLASGOW_HASKELL__ >= 707 + deriving (Show, Typeable) +#else deriving Show hunitFailureTc :: TyCon @@ -87,6 +95,8 @@ instance Typeable HUnitFailure where typeOf _ = mkTyConApp hunitFailureTc [] +#endif + #ifdef BASE4 instance Exception HUnitFailure