diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -39,7 +39,8 @@
 
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 
-myConfHook :: (GenericPackageDescription, HookedBuildInfo) -> ConfigFlags -> IO LocalBuildInfo
+-- Comment out type signature because of a Cabal API change from 1.6 to 1.7
+-- myConfHook :: (GenericPackageDescription, HookedBuildInfo) -> ConfigFlags -> IO LocalBuildInfo
 myConfHook (pkg0, pbi) flags = do
     createDirectoryIfMissing True wxcoreDirectory
     system $ "wxdirect -t --wxc " ++ sourceDirectory ++ " -o " ++ wxcoreDirectory ++ " " ++ wxcoreIncludeFile
diff --git a/src/haskell/Graphics/UI/WXCore/WxcClassInfo.hs b/src/haskell/Graphics/UI/WXCore/WxcClassInfo.hs
--- a/src/haskell/Graphics/UI/WXCore/WxcClassInfo.hs
+++ b/src/haskell/Graphics/UI/WXCore/WxcClassInfo.hs
@@ -12,7 +12,7 @@
 Do not edit this file manually!
 This file was automatically generated by wxDirect on: 
 
-  * @2010-02-26 18:22:54.939568 UTC@
+  * @2010-04-01 18:46:36.145878 UTC@
 
 And contains 381 class info definitions.
 -}
diff --git a/src/haskell/Graphics/UI/WXCore/WxcClassTypes.hs b/src/haskell/Graphics/UI/WXCore/WxcClassTypes.hs
--- a/src/haskell/Graphics/UI/WXCore/WxcClassTypes.hs
+++ b/src/haskell/Graphics/UI/WXCore/WxcClassTypes.hs
@@ -12,7 +12,7 @@
 Do not edit this file manually!
 This file was automatically generated by wxDirect on: 
 
-  * @2010-02-26 18:22:54.594253 UTC@
+  * @2010-04-01 18:46:35.710616 UTC@
 
 From the files:
 
@@ -2186,7 +2186,7 @@
 import Graphics.UI.WXCore.WxcObject
 
 classTypesVersion :: String
-classTypesVersion  = "2010-02-26 18:22:54.59425 UTC"
+classTypesVersion  = "2010-04-01 18:46:35.710612 UTC"
 
 -- | Pointer to an object of type 'ConfigBase'.
 type ConfigBase a  = Object (CConfigBase a)
diff --git a/src/haskell/Graphics/UI/WXCore/WxcClasses.hs b/src/haskell/Graphics/UI/WXCore/WxcClasses.hs
--- a/src/haskell/Graphics/UI/WXCore/WxcClasses.hs
+++ b/src/haskell/Graphics/UI/WXCore/WxcClasses.hs
@@ -12,7 +12,7 @@
 Do not edit this file manually!
 This file was automatically generated by wxDirect on: 
 
-  * @2010-02-26 18:22:56.722962 UTC@
+  * @2010-04-01 18:46:39.228567 UTC@
 
 From the files:
 
@@ -35,5 +35,5 @@
 import Graphics.UI.WXCore.WxcClassTypes
 
 versionWxcClasses :: String
-versionWxcClasses  = "2010-02-26 18:22:55.878913 UTC"
+versionWxcClasses  = "2010-04-01 18:46:37.533433 UTC"
 
diff --git a/src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs b/src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs
--- a/src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs
+++ b/src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs
@@ -14,7 +14,7 @@
 Do not edit this file manually!
 This file was automatically generated by wxDirect on: 
 
-  * @2010-02-26 18:22:55.878916 UTC@
+  * @2010-04-01 18:46:37.533436 UTC@
 
 From the files:
 
@@ -1718,7 +1718,7 @@
 import Graphics.UI.WXCore.WxcClassTypes
 
 versionWxcClassesAL :: String
-versionWxcClassesAL  = "2010-02-26 18:22:55.878913 UTC"
+versionWxcClassesAL  = "2010-04-01 18:46:37.533433 UTC"
 
 -- | usage: (@acceleratorEntryCreate flags keyCode cmd@).
 acceleratorEntryCreate :: Int -> Int -> Int ->  IO (AcceleratorEntry  ())
diff --git a/src/haskell/Graphics/UI/WXCore/WxcClassesMZ.hs b/src/haskell/Graphics/UI/WXCore/WxcClassesMZ.hs
--- a/src/haskell/Graphics/UI/WXCore/WxcClassesMZ.hs
+++ b/src/haskell/Graphics/UI/WXCore/WxcClassesMZ.hs
@@ -14,7 +14,7 @@
 Do not edit this file manually!
 This file was automatically generated by wxDirect on: 
 
-  * @2010-02-26 18:22:56.454914 UTC@
+  * @2010-04-01 18:46:38.928916 UTC@
 
 From the files:
 
@@ -2347,7 +2347,7 @@
 import Graphics.UI.WXCore.WxcClassTypes
 
 versionWxcClassesMZ :: String
-versionWxcClassesMZ  = "2010-02-26 18:22:55.878913 UTC"
+versionWxcClassesMZ  = "2010-04-01 18:46:37.533433 UTC"
 
 -- | usage: (@managedPtrCreateFromBitmap obj@).
 managedPtrCreateFromBitmap :: Bitmap  a ->  IO (WxManagedPtr  ())
diff --git a/src/haskell/Graphics/UI/WXCore/WxcDefs.hs b/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
--- a/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
+++ b/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
@@ -12,7 +12,7 @@
 Do not edit this file manually!
 This file was automatically generated by wxDirect on: 
 
-  * @2010-02-26 18:22:56.849275 UTC@
+  * @2010-04-01 18:46:39.435522 UTC@
 
 From the files:
 
diff --git a/wxcore.cabal b/wxcore.cabal
--- a/wxcore.cabal
+++ b/wxcore.cabal
@@ -1,5 +1,5 @@
 name:         wxcore
-version:      0.12.1.3
+version:      0.12.1.4
 license:      LGPL
 license-file: LICENSE
 author:       Daan Leijen
@@ -13,9 +13,8 @@
   X11, and MacOS X. This version works with wxWidgets 2.8 only.
 homepage:     http://haskell.org/haskellwiki/WxHaskell
 
-cabal-version: >= 1.8
+cabal-version: >= 1.2
 build-type:    Custom
-
 extra-tmp-files:
   src/haskell/Graphics/UI/WXCore/WxcClassInfo.hs
   src/haskell/Graphics/UI/WXCore/WxcClassTypes.hs
@@ -47,6 +46,9 @@
   src/include/wxc_glue.h
   src/include/wxc_types.h
 
+flag splitBase
+  description:  use new split base
+  default:      True
 
 library
   hs-source-dirs:
@@ -193,10 +195,18 @@
     filepath,
     parsec,
     stm,
-    wxdirect >= 0.12.1.2,
-    array >= 0.3 && < 0.4,
-    base >= 4 && < 5,
-    containers >= 0.3,
+    wxdirect >= 0.12.1.3,
     directory,
     old-time,
     time
+
+  if flag(splitBase)
+    build-depends:
+      array >= 0.2 && < 0.4,
+      base >= 4 && < 5,
+      containers >= 0.2 && < 0.4
+  else
+    build-depends:
+      array >= 0.1 && < 0.3,
+      base >= 3 && < 4,
+      containers >= 0.1 && < 0.3
