diff --git a/happstack-util.cabal b/happstack-util.cabal
--- a/happstack-util.cabal
+++ b/happstack-util.cabal
@@ -1,5 +1,5 @@
 Name:                happstack-util
-Version:             0.5.0.1
+Version:             0.5.0.2
 Synopsis:            Web framework
 License:             BSD3
 License-file:        COPYING
@@ -89,11 +89,10 @@
 Executable happstack-util-tests
   Main-Is: Test.hs
   GHC-Options: -threaded
-  Build-depends: HUnit
   hs-source-dirs: tests, src
   if flag(tests)
     Buildable: True
-    Build-Depends: network
+    Build-Depends: network, HUnit
   else
     Buildable: False
 
