diff --git a/texmath.cabal b/texmath.cabal
--- a/texmath.cabal
+++ b/texmath.cabal
@@ -1,5 +1,5 @@
 Name:                texmath
-Version:             0.2
+Version:             0.2.0.1
 Cabal-version:       >= 1.2
 Build-type:          Simple
 Synopsis:            Conversion of LaTeX math formulas to MathML.
@@ -44,7 +44,11 @@
   default:           True
 
 Library
-    Build-depends:       base >= 4 && < 5, xml, parsec >= 2 && < 3, containers
+    Build-depends:       xml, parsec >= 2 && < 3
+    if impl(ghc >= 6.10)
+      Build-depends: base >= 4 && < 5, containers
+    else
+      Build-depends: base >= 3 && < 4
 
     Exposed-modules:     Text.TeXMath, Text.TeXMath.Parser, Text.TeXMath.MathMLWriter
 
