diff --git a/happstack-data.cabal b/happstack-data.cabal
--- a/happstack-data.cabal
+++ b/happstack-data.cabal
@@ -1,5 +1,5 @@
 Name:               happstack-data
-Version:            0.5.0
+Version:            0.5.0.2
 License:            BSD3
 License-File:       COPYING
 Author:             Happstack team, HAppS LLC
@@ -105,10 +105,10 @@
 Executable happstack-data-tests
   Main-Is: Test.hs
   GHC-Options: -threaded
-  Build-depends: HUnit
   hs-source-dirs: tests, src
   if flag(tests)
     Buildable: True
+    Build-depends: HUnit
   else
     Buildable: False
 
