diff --git a/Setup.hs b/Setup.hs
deleted file mode 100644
--- a/Setup.hs
+++ /dev/null
@@ -1,2 +0,0 @@
-import Distribution.Simple
-main = defaultMain
diff --git a/hspec-expectations-pretty-diff.cabal b/hspec-expectations-pretty-diff.cabal
--- a/hspec-expectations-pretty-diff.cabal
+++ b/hspec-expectations-pretty-diff.cabal
@@ -1,5 +1,5 @@
 name:             hspec-expectations-pretty-diff
-version:          0.7.2.2
+version:          0.7.2.3
 synopsis:         Catchy combinators for HUnit
 description:      Catchy combinators for HUnit: <https://github.com/myfreeweb/hspec-expectations-pretty-diff#readme>
 bug-reports:      https://github.com/myfreeweb/hspec-expectations-pretty-diff/issues
@@ -40,7 +40,7 @@
   build-depends:
       base >= 4.0.0.0 && < 5
     , hspec-expectations-pretty-diff
-    , HUnit
+    , HUnit >= 1.3.0.0
     , aeson
     , text
     , hspec
diff --git a/test/Test/Hspec/Expectations/PrettySpec.hs b/test/Test/Hspec/Expectations/PrettySpec.hs
--- a/test/Test/Hspec/Expectations/PrettySpec.hs
+++ b/test/Test/Hspec/Expectations/PrettySpec.hs
@@ -1,6 +1,5 @@
 {-# OPTIONS_GHC -fno-warn-orphans #-}
 {-# LANGUAGE CPP #-}
-{-# LANGUAGE StandaloneDeriving #-}
 module Test.Hspec.Expectations.PrettySpec (spec) where
 
 import           Control.Exception
@@ -11,10 +10,8 @@
 
 import           Test.Hspec.Expectations.Pretty
 
-deriving instance Eq HUnitFailure
-
 expectationFailed :: String -> HUnitFailure -> Bool
-expectationFailed msg e = e == HUnitFailure msg
+expectationFailed msg (HUnitFailure _ msg') = msg == msg'
 
 data TestStructure = TestStructure { name :: String, number :: Int, children :: [TestStructure] }
   deriving (Show, Eq)
