test-framework-hunit 0.3.0.2 → 0.3.0.3
raw patch · 4 files changed
+42/−40 lines, 4 filesdep −extensible-exceptionsdep ~HUnitdep ~basedep ~test-frameworksetup-changednew-uploader
Dependencies removed: extensible-exceptions
Dependency ranges changed: HUnit, base, test-framework
Files
- ChangeLog.md +7/−0
- Setup.lhs +0/−4
- Test/Framework/Providers/HUnit.hs +1/−11
- test-framework-hunit.cabal +34/−25
+ ChangeLog.md view
@@ -0,0 +1,7 @@+## 0.3.0.3++_2026-01-05, Andreas Abel_++- Drop support for GHC 7+- Remove obsolete `deriving Typeable`+- Tested building with GHC 8.0 - 9.14.1
− Setup.lhs
@@ -1,4 +0,0 @@-#! /usr/bin/env runhaskell--> import Distribution.Simple-> main = defaultMain
Test/Framework/Providers/HUnit.hs view
@@ -1,5 +1,5 @@ {-# LANGUAGE CPP #-}-{-# LANGUAGE DeriveDataTypeable #-}+ -- | Allows HUnit test cases to be used with the test-framework package. -- -- For an example of how to use test-framework, please see <http://github.com/batterseapower/test-framework/raw/master/example/Test/Framework/Example.lhs>@@ -13,8 +13,6 @@ import qualified Test.HUnit.Base import Test.HUnit.Lang -import Data.Typeable- -- | Create a 'Test' for a HUnit 'Assertion' testCase :: TestName -> Assertion -> Test testCase name = Test name . TestCase@@ -57,9 +55,7 @@ testCaseSucceeded TestCasePassed = True testCaseSucceeded _ = False - newtype TestCase = TestCase Assertion- deriving Typeable instance Testlike TestCaseRunning TestCaseResult TestCase where runTest topts (TestCase assertion) = runTestCase topts assertion@@ -75,12 +71,6 @@ myPerformTestCase assertion = do result <- performTestCase assertion return $ case result of-#if MIN_VERSION_HUnit(1,3,0) Success -> TestCasePassed Failure _loc message -> TestCaseFailed message Error _loc message -> TestCaseError message-#else- Nothing -> TestCasePassed- Just (True, message) -> TestCaseFailed message- Just (False, message) -> TestCaseError message-#endif
test-framework-hunit.cabal view
@@ -1,42 +1,51 @@+Cabal-Version: 1.18 Name: test-framework-hunit-Version: 0.3.0.2-Cabal-Version: >= 1.6+Version: 0.3.0.3 Category: Testing Synopsis: HUnit support for the test-framework package. License: BSD3 License-File: LICENSE Author: Max Bolingbroke <batterseapower@hotmail.com>-Maintainer: Haskell Libraries <libraries@haskell.org>-Homepage: https://batterseapower.github.io/test-framework/+Maintainer: Andreas Abel+Homepage: https://github.com/haskell/test-framework#readme Bug-Reports: https://github.com/haskell/test-framework/issues Build-Type: Simple-Description: HUnit support for the test-framework package.--Flag Base4- Description: Choose base version 4- Default: True+Description: @HUnit@ support for the @test-framework@ package. -Flag Base3- Description: Choose base version 3- Default: False+extra-doc-files:+ ChangeLog.md +Tested-With:+ GHC == 9.14.1+ GHC == 9.12.2+ GHC == 9.10.3+ GHC == 9.8.4+ GHC == 9.6.7+ GHC == 9.4.8+ GHC == 9.2.8+ GHC == 9.0.2+ GHC == 8.10.7+ GHC == 8.8.4+ GHC == 8.6.5+ GHC == 8.4.4+ GHC == 8.2.2+ GHC == 8.0.2 Library- Exposed-Modules: Test.Framework.Providers.HUnit+ Default-Language: Haskell2010+ Default-Extensions: TypeOperators+ MultiParamTypeClasses - Build-Depends: test-framework >= 0.2.0, HUnit >= 1.2 && < 1.4, extensible-exceptions >= 0.1.1 && < 0.2.0- if flag(base3)- Build-Depends: base >= 3 && < 4- else- if flag(base4)- Build-Depends: base >= 4 && < 5+ Exposed-Modules: Test.Framework.Providers.HUnit - Extensions: TypeOperators- MultiParamTypeClasses+ Build-Depends: test-framework == 0.8.*+ , base >= 4.9 && < 5+ , HUnit >= 1.5.0.0 && < 1.7 - Ghc-Options: -Wall+ Ghc-Options: -Wno-deprecations+ -- This package is legacy and won't address deprecation warnings. Source-Repository head- Type: git- Location: https://github.com/haskell/test-framework.git- subdir: hunit+ Type: git+ Location: https://github.com/haskell/test-framework.git+ subdir: hunit