diff --git a/HPDF.cabal b/HPDF.cabal
--- a/HPDF.cabal
+++ b/HPDF.cabal
@@ -1,5 +1,5 @@
 Name: HPDF
-Version: 1.4.1
+Version: 1.4.2
 cabal-version: >=1.6
 License: LGPL
 License-file:LICENSE
@@ -29,9 +29,11 @@
 
 library
   if flag(splitBase)
-    build-depends: base >= 4 , containers, random >= 1.0, bytestring >= 0.9, array >= 0.1, zlib >= 0.5, binary >= 0.4, mtl
+    build-depends: base >= 3 && < 5 , containers, random >= 1.0, bytestring >= 0.9, array >= 0.1, zlib >= 0.5, binary >= 0.4, mtl
   else
-    build-depends: base >= 3, haskell98, mtl ,zlib >= 0.5, binary >= 0.4
+    build-depends: base >= 2 && < 3, haskell98, mtl ,zlib >= 0.5, binary >= 0.4
+  if impl(ghc >= 6.10)
+    build-depends: base >= 4
   ghc-options: -Wall -funbox-strict-fields  -O2
   extensions: 
     FlexibleInstances, 
