diff --git a/vacuum.cabal b/vacuum.cabal
--- a/vacuum.cabal
+++ b/vacuum.cabal
@@ -1,5 +1,5 @@
 name:               vacuum
-version:            0.0.7
+version:            0.0.8
 cabal-version:      >= 1.6
 build-type:         Simple
 license:            LGPL
@@ -13,18 +13,28 @@
 synopsis:           Extract graph representations of ghc heap values.
 description:        .
 
+flag ghc-six-ten-one
+  description:  ghc-6.10.1
+  default:      True
+
 library
   hs-source-dirs:   src
   ghc-options:      -O2 -fglasgow-exts
   extensions:
-  build-depends:    base==4.*,
-                    ghc >= 6.10.1 && <= 6.10.2, ghc-prim,
-                    array, containers, array,
-                    pretty, haskell-src-meta,
-                    Cabal >= 1.6 && < 1.7, ghc-paths
   exposed-modules:  GHC.Vacuum,
                     GHC.Vacuum.ClosureType,
                     GHC.Vacuum.Dot,
                     GHC.Vacuum.GHC.Internal
   other-modules:    GHC.Vacuum.GHC,
                     GHC.Vacuum.GHC.Imports
+
+  if flag(ghc-six-ten-one)
+    build-depends:    base==4.*, ghc-prim, ghc-paths,
+                      ghc == 6.10.1, Cabal == 1.6.0.1,
+                      array, containers, array,
+                      pretty, haskell-src-meta
+  else
+    build-depends:    base==4.*, ghc-prim, ghc-paths,
+                      ghc == 6.10.2, Cabal == 1.6.0.3,
+                      array, containers, array,
+                      pretty, haskell-src-meta
