diff --git a/hspec-hashable.cabal b/hspec-hashable.cabal
--- a/hspec-hashable.cabal
+++ b/hspec-hashable.cabal
@@ -1,5 +1,5 @@
 name:                hspec-hashable
-version:             0.1.0.0
+version:             0.1.0.1
 synopsis:            Initial project template from stack
 description:         Please see README.md
 homepage:            https://github.com/plow-technologies/hspec-hashable#readme
diff --git a/src/Test/Hspec/Hashable.hs b/src/Test/Hspec/Hashable.hs
--- a/src/Test/Hspec/Hashable.hs
+++ b/src/Test/Hspec/Hashable.hs
@@ -44,7 +44,7 @@
   => Int -> Proxy a -> Spec
 testHashableUniqueness sampleSize proxy = do
   case sampleSize <= 0 of
-    True -> fail ("The sample size must be greater than zero. The sample size you provided is: " ++ show sampleSize ++ ".")
+    True -> error $ "The sample size must be greater than zero. The sample size you provided is: " ++ show sampleSize ++ "."
     False -> do
       testSelfEquality sampleSize typeName proxy
       testHashableCollision sampleSize typeName proxy
@@ -58,7 +58,7 @@
   => Int -> String -> Proxy a -> Spec
 testHashableUniquenessWithoutTypeable sampleSize typeName proxy = do
   case sampleSize <= 0 of
-    True -> fail ("The sample size must be greater than zero. The sample size you provided is: " ++ show sampleSize ++ ".")
+    True -> error $ "The sample size must be greater than zero. The sample size you provided is: " ++ show sampleSize ++ "."
     False -> do
       testSelfEquality sampleSize typeName proxy
       testHashableCollision sampleSize typeName proxy
