Skip to content

Commit

Permalink
Fix a warning with QuickCheck-2.7.*
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Apr 5, 2014
1 parent c179f14 commit 82244bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Test/QuickCheck/IO.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
{-# LANGUAGE CPP, TypeSynonymInstances, FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Test.QuickCheck.IO where

Expand All @@ -11,5 +11,9 @@ instance Testable Assertion where
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` \(HUnitFailure err) -> return failed {reason = err}

0 comments on commit 82244bb

Please sign in to comment.