diff --git a/quickcheck-io.cabal b/quickcheck-io.cabal
--- a/quickcheck-io.cabal
+++ b/quickcheck-io.cabal
@@ -1,9 +1,9 @@
--- This file has been generated from package.yaml by hpack version 0.14.1.
+-- This file has been generated from package.yaml by hpack version 0.15.0.
 --
 -- see: https://github.com/sol/hpack
 
 name:             quickcheck-io
-version:          0.1.3
+version:          0.1.4
 synopsis:         Use HUnit assertions as QuickCheck properties
 description:      This package provides an orphan instance that allows you to
                   use HUnit assertions as QuickCheck properties.
diff --git a/src/Test/QuickCheck/IO.hs b/src/Test/QuickCheck/IO.hs
--- a/src/Test/QuickCheck/IO.hs
+++ b/src/Test/QuickCheck/IO.hs
@@ -3,7 +3,7 @@
 module Test.QuickCheck.IO where
 
 import qualified Control.Exception as E
-import           Test.HUnit.Lang (Assertion, HUnitFailure(..))
+import           Test.HUnit.Lang
 import           Test.QuickCheck.Property
 
 instance Testable Assertion where
@@ -24,4 +24,8 @@
 #else
     \(HUnitFailure err) ->
 #endif
+#if MIN_VERSION_HUnit(1,5,0)
+      return failed {reason = formatFailureReason err}
+#else
       return failed {reason = err}
+#endif
