diff --git a/imap.cabal b/imap.cabal
--- a/imap.cabal
+++ b/imap.cabal
@@ -2,7 +2,7 @@
 -- see http://haskell.org/cabal/users-guide/
 
 name:                imap
-version:             0.3.0.8
+version:             0.3.0.9
 synopsis:            An efficient IMAP client library, with SSL and streaming
 license:             BSD3
 license-file:        LICENSE
@@ -114,13 +114,13 @@
                         random == 1.1.*,
                         word8 == 0.1.* && <0.2,
                         rolling-queue == 0.1,
-                        stm == 2.4.* && <2.5,
+                        stm >= 2.4 && <2.6,
                         either >= 4.5 && <6,
                         hslogger == 1.2.*,
                         transformers == 0.5.*,
                         list-t == 1.0.*,
                         stm-delay == 0.1.*,
-                        exceptions == 0.8.*,
+                        exceptions >= 0.8 && <0.11,
                         pipes == 4.3.*,
                         containers == 0.5.*,
                         network == 2.6.*
@@ -141,7 +141,7 @@
   type:                 exitcode-stdio-1.0
   main-is:              main.hs
   hs-source-dirs:       test, src
-  build-depends:        base == 4.10.*,
+  build-depends:        base >= 4.10 && <4.12,
                         attoparsec == 0.13.*,
                         text == 1.2.*,
                         connection == 0.2.*,
@@ -149,24 +149,24 @@
                         random == 1.1.*,
                         word8 == 0.1.* && <0.2,
                         rolling-queue == 0.1,
-                        stm == 2.4.* && <2.5,
-                        either ==  4.5.*,
+                        stm >= 2.4 && <2.6,
+                        either >= 4.5 && <6,
                         hslogger == 1.2.*,
                         transformers == 0.5.*,
-                        list-t == 1.0.0.*,
+                        list-t == 1.0.*,
                         derive == 2.6.*,
                         stm-delay == 0.1.*,
-                        exceptions == 0.8.*,
+                        exceptions >= 0.8 && <0.11,
                         pipes == 4.3.*,
                         containers == 0.5.*,
                         network == 2.6.*,
 
-                        tasty == 0.11.*,
+                        tasty >= 0.11,
                         HUnit == 1.6.*,
-                        QuickCheck == 2.10.*,
-                        tasty-hunit == 0.9.*,
-                        tasty-quickcheck == 0.9.*,
-                        monadIO == 0.10.*,
+                        QuickCheck >= 2.10,
+                        tasty-hunit >= 0.9,
+                        tasty-quickcheck >= 0.9,
+                        monadIO >= 0.10,
                         mtl == 2.2.*
   default-language:     Haskell2010
   default-extensions:   OverloadedStrings,
