diff --git a/mighttpd2.cabal b/mighttpd2.cabal
--- a/mighttpd2.cabal
+++ b/mighttpd2.cabal
@@ -1,5 +1,5 @@
 Name:                   mighttpd2
-Version:                2.5.2
+Version:                2.5.3
 Author:                 Kazu Yamamoto <kazu@iij.ad.jp>
 Maintainer:             Kazu Yamamoto <kazu@iij.ad.jp>
 License:                BSD3
@@ -51,12 +51,36 @@
   Main-Is:              mkindex.hs
   GHC-Options:          -Wall -fno-warn-unused-do-bind
   Build-Depends:        base >= 4 && < 5
+                      , unix
+                      , old-locale
+                      , directory
+                      , time
 
 Test-Suite test
   Main-Is:              Test.hs
   Hs-Source-Dirs:       test, .
   Type:                 exitcode-stdio-1.0
   Build-Depends:        base >= 4 && < 5
+                      , bytestring
+                      , deepseq
+                      , directory
+                      , filepath
+                      , hashmap >= 1.2 && < 1.3
+                      , http-conduit
+                      , http-date
+                      , http-types
+                      , network
+                      , old-locale
+                      , parsec >= 3
+                      , time
+                      , transformers
+                      , unix
+                      , unix-bytestring
+                      , wai >= 1.1
+                      , wai-app-file-cgi
+                      , wai-logger
+                      , wai-logger-prefork
+                      , warp
                       , HUnit
                       , test-framework-hunit
                       , test-framework-th-prime
