diff --git a/doc/macros.tex b/doc/macros.tex
--- a/doc/macros.tex
+++ b/doc/macros.tex
@@ -1,6 +1,6 @@
 % Custom macros.
 
-\newcommand{\vtyuiversion}{1.7}
+\newcommand{\vtyuiversion}{1.7.1}
 
 \newcommand{\fw}[1]{\texttt{#1}}
 \newcommand{\vtyui}{\fw{vty-ui}}
diff --git a/vty-ui.cabal b/vty-ui.cabal
--- a/vty-ui.cabal
+++ b/vty-ui.cabal
@@ -1,5 +1,5 @@
 Name:                vty-ui
-Version:             1.7
+Version:             1.7.1
 Synopsis:
   An interactive terminal user interface library for Vty
 
@@ -89,13 +89,13 @@
 Library
   Build-Depends:
     base >= 4 && < 5,
-    vty >= 4.7.0.18,
+    vty >= 4.7.0.18 && < 5,
     containers >= 0.2 && < 0.6,
     regex-base >= 0.93 && < 0.94,
     directory >= 1.0 && < 1.3,
     filepath >= 1.1 && < 1.4,
     unix >= 2.4 && < 2.8,
-    mtl >= 2.0 && < 2.2,
+    mtl >= 2.0 && < 2.3,
     stm >= 2.1 && < 2.5,
     array >= 0.3.0.0 && < 0.6.0.0,
     text >= 0.11,
@@ -136,10 +136,10 @@
 Executable vty-ui-tests
   Build-Depends:
     base >= 4 && < 5,
-    QuickCheck >= 2.4 && < 2.7,
+    QuickCheck >= 2.4 && < 2.8,
     random >= 1.0,
     text,
-    vty,
+    vty < 5,
     vty-ui
 
   CPP-Options: -DTESTING
@@ -147,7 +147,7 @@
 
   if flag(no-tests)
     Buildable:     False
-  end
+
   Hs-Source-Dirs:  src,test,test/src
   Main-is:         TestDriver.hs
 
@@ -166,8 +166,8 @@
   Main-is:         CollectionDemo.hs
   Build-Depends:
     base >= 4 && < 5,
-    mtl >= 2.0 && < 2.2,
-    vty >= 4.7.0.18,
+    mtl >= 2.0 && < 2.3,
+    vty >= 4.7.0.18 && < 5,
     text,
     vty-ui
   if !flag(demos)
@@ -179,8 +179,8 @@
   Main-is:         ListDemo.hs
   Build-Depends:
     base >= 4 && < 5,
-    mtl >= 2.0 && < 2.2,
-    vty >= 4.7.0.18,
+    mtl >= 2.0 && < 2.3,
+    vty >= 4.7.0.18 && < 5,
     text,
     vty-ui
   if !flag(demos)
@@ -192,8 +192,8 @@
   Main-is:         ProgressBarDemo.hs
   Build-Depends:
     base >= 4 && < 5,
-    mtl >= 2.0 && < 2.2,
-    vty >= 4.7.0.18,
+    mtl >= 2.0 && < 2.3,
+    vty >= 4.7.0.18 && < 5,
     text,
     vty-ui
   if !flag(demos)
@@ -205,11 +205,11 @@
   Main-is:         ComplexDemo.hs
   Build-Depends:
     base >= 4 && < 5,
-    mtl >= 2.0 && < 2.2,
+    mtl >= 2.0 && < 2.3,
     bytestring >= 0.9 && < 1.0,
     time >= 1.1 && < 1.5,
     old-locale >= 1.0 && < 1.1,
-    vty >= 4.7.0.18,
+    vty >= 4.7.0.18 && < 5,
     text,
     vty-ui
   if !flag(demos)
@@ -221,8 +221,8 @@
   Main-is:         DirBrowserDemo.hs
   Build-Depends:
     base >= 4 && < 5,
-    mtl >= 2.0 && < 2.2,
-    vty >= 4.7.0.18,
+    mtl >= 2.0 && < 2.3,
+    vty >= 4.7.0.18 && < 5,
     vty-ui
   if !flag(demos)
     Buildable: False
@@ -233,8 +233,8 @@
   Main-is:         PhoneInputDemo.hs
   Build-Depends:
     base >= 4 && < 5,
-    mtl >= 2.0 && < 2.2,
-    vty >= 4.7.0.18,
+    mtl >= 2.0 && < 2.3,
+    vty >= 4.7.0.18 && < 5,
     text,
     vty-ui
   if !flag(demos)
@@ -246,8 +246,8 @@
   Main-is:         DialogDemo.hs
   Build-Depends:
     base >= 4 && < 5,
-    mtl >= 2.0 && < 2.2,
-    vty >= 4.7.0.18,
+    mtl >= 2.0 && < 2.3,
+    vty >= 4.7.0.18 && < 5,
     text,
     vty-ui
   if !flag(demos)
@@ -259,8 +259,8 @@
   Main-is:         EditDemo.hs
   Build-Depends:
     base >= 4 && < 5,
-    mtl >= 2.0 && < 2.2,
-    vty >= 4.7.0.18,
+    mtl >= 2.0 && < 2.3,
+    vty >= 4.7.0.18 && < 5,
     vty-ui
   if !flag(demos)
     Buildable: False
