diff --git a/mnist-idx.cabal b/mnist-idx.cabal
--- a/mnist-idx.cabal
+++ b/mnist-idx.cabal
@@ -1,6 +1,6 @@
 name:                mnist-idx
 
-version:             0.1.2.5
+version:             0.1.2.6
 
 -- A short (one-line) description of the package.
 synopsis:            Read and write IDX data that is used in e.g. the MNIST database.
@@ -56,8 +56,8 @@
   -- other-extensions:    
   
   -- Other library packages from which modules are imported.
-  build-depends:       base >=4.6 && <4.9,
-                       binary >= 0.7 && < 0.8,
+  build-depends:       base >=4.6 && <5,
+                       binary >= 0.7 && < 0.9,
                        vector >= 0.10 && < 0.12,
                        bytestring >= 0.10 && < 0.11 
   -- Directories containing source files.
@@ -77,6 +77,6 @@
   build-depends:       base >= 4.6
                      , hspec >= 1.9
                      , vector >= 0.10 && < 0.12
-                     , binary >= 0.7 && < 0.8
+                     , binary >= 0.7 && < 0.9
                      , directory >= 1.2 && < 1.3
                      , mnist-idx
