quickcheck-io-0.1.2/0000755000000000000000000000000012565563466012441 5ustar0000000000000000quickcheck-io-0.1.2/Setup.lhs0000644000000000000000000000011412565563466014245 0ustar0000000000000000#!/usr/bin/env runhaskell > import Distribution.Simple > main = defaultMain quickcheck-io-0.1.2/LICENSE0000644000000000000000000000206212565563466013446 0ustar0000000000000000Copyright (c) 2013 Simon Hengel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. quickcheck-io-0.1.2/quickcheck-io.cabal0000644000000000000000000000207612565563466016151 0ustar0000000000000000-- This file has been generated from package.yaml by hpack version 0.5.4. -- -- see: https://github.com/sol/hpack name: quickcheck-io version: 0.1.2 synopsis: Use HUnit assertions as QuickCheck properties description: This package provides an orphan instance that allows you to use HUnit assertions as QuickCheck properties. category: Testing homepage: https://github.com/hspec/quickcheck-io#readme bug-reports: https://github.com/hspec/quickcheck-io/issues license: MIT license-file: LICENSE copyright: (c) 2013 Simon Hengel author: Simon Hengel maintainer: Simon Hengel build-type: Simple cabal-version: >= 1.10 source-repository head type: git location: https://github.com/hspec/quickcheck-io library hs-source-dirs: src ghc-options: -Wall build-depends: QuickCheck >= 2.5.1 , HUnit >= 1.2.5 , base == 4.* exposed-modules: Test.QuickCheck.IO default-language: Haskell2010 quickcheck-io-0.1.2/src/0000755000000000000000000000000012565563466013230 5ustar0000000000000000quickcheck-io-0.1.2/src/Test/0000755000000000000000000000000012565563466014147 5ustar0000000000000000quickcheck-io-0.1.2/src/Test/QuickCheck/0000755000000000000000000000000012565563466016161 5ustar0000000000000000quickcheck-io-0.1.2/src/Test/QuickCheck/IO.hs0000644000000000000000000000127712565563466017033 0ustar0000000000000000{-# LANGUAGE CPP, TypeSynonymInstances, FlexibleInstances #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Test.QuickCheck.IO where import qualified Control.Exception as E import Test.HUnit.Lang (Assertion, HUnitFailure(..)) import Test.QuickCheck.Property instance Testable Assertion where property = propertyIO exhaustive _ = True propertyIO :: Assertion -> Property #if MIN_VERSION_QuickCheck(2,7,0) propertyIO action = ioProperty $ do #else propertyIO action = morallyDubiousIOProperty $ do #endif (action >> return succeeded) `E.catch` #if MIN_VERSION_HUnit(1,3,0) \(HUnitFailure _ err) -> #else \(HUnitFailure err) -> #endif return failed {reason = err}