diff --git a/codex.cabal b/codex.cabal
--- a/codex.cabal
+++ b/codex.cabal
@@ -1,5 +1,5 @@
 name:                codex
-version:             0.3.0.2
+version:             0.3.0.4
 synopsis:            A ctags file generator for cabal project dependencies.
 description:
   This tool download and cache the source code of packages in your local hackage,
@@ -76,7 +76,7 @@
     , network             >= 2.6        && < 2.7
     , wreq
     , yaml                
-    , codex               == 0.3.0.2
+    , codex               == 0.3.0.4
 
 source-repository head
   type:     git
diff --git a/codex/Main.hs b/codex/Main.hs
--- a/codex/Main.hs
+++ b/codex/Main.hs
@@ -1,3 +1,10 @@
+{-# LANGUAGE CPP #-}
+
+#if !MIN_VERSION_base(4,8,0)
+import Control.Applicative ((<$>))
+import Data.Traversable (traverse)
+#endif
+
 import Control.Arrow
 import Control.Exception (try, SomeException)
 import Control.Monad
