diff --git a/ghcjs-dom.cabal b/ghcjs-dom.cabal
--- a/ghcjs-dom.cabal
+++ b/ghcjs-dom.cabal
@@ -1,5 +1,5 @@
 name: ghcjs-dom
-version: 0.0.9
+version: 0.0.10
 cabal-version: >=1.10
 build-type: Simple
 license: MIT
@@ -176,6 +176,10 @@
           GHCJS.DOM.TimeRanges
           -- GHCJS.DOM.WebKitAnimation
           -- GHCJS.DOM.WebKitAnimationList
+
+    -- Make sure ghcjs gets turned off if ghcjs-base is not avaialbe
+    if flag(ghcjs)
+        build-depends: ghcjs-base
 
 --    if impl(ghcjs) && flag(jsffi)
     if flag(ghcjs) && flag(jsffi)
