diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Changelog
 
+#### 2.3.2.5
+
+* Compatibility with time 1.8, GHC 8.2.
+
 #### 2.3.2.4
 
 * Compatibility with time 1.6, base 4.9, and Cabal 1.24 (GHC 8).
diff --git a/HDBC-postgresql.cabal b/HDBC-postgresql.cabal
--- a/HDBC-postgresql.cabal
+++ b/HDBC-postgresql.cabal
@@ -1,5 +1,5 @@
 Name: HDBC-postgresql
-Version: 2.3.2.4
+Version: 2.3.2.5
 License: BSD3
 Maintainer: Nicolas Wu <nicolas.wu@gmail.com>
 Author: John Goerzen
@@ -42,7 +42,7 @@
   Build-Depends: base >= 3 && < 5, mtl, HDBC>=2.2.0, parsec, utf8-string,
                  bytestring, old-time, convertible
   if flag(minTime15)
-    Build-Depends: time >= 1.5 && < 1.7
+    Build-Depends: time >= 1.5 && < 1.9
     CPP-Options: -DMIN_TIME_15
   else
     Build-Depends: time < 1.5, old-locale
@@ -60,7 +60,7 @@
                      convertible, parsec, utf8-string,
                      bytestring, old-time, base >= 4.6 && < 5.0, HDBC>=2.2.6
       if flag(minTime15)
-        Build-Depends: time >= 1.5 && < 1.7
+        Build-Depends: time >= 1.5 && < 1.9
         CPP-Options: -DMIN_TIME_15
       else
         Build-Depends: time < 1.5, old-locale
diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -11,6 +11,7 @@
 
 import Data.Char (isSpace)
 import Data.List (dropWhile,reverse)
+import Data.String (fromString)
 
 import Control.Monad
 
@@ -23,7 +24,7 @@
     
     return lbi {
       localPkgDescr = updatePackageDescription
-                        (Just bi, [("runtests", bi)]) (localPkgDescr lbi)
+                        (Just bi, [(fromString "runtests", bi)]) (localPkgDescr lbi)
     } 
 }
 
