diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,3 +1,7 @@
+### 3.0.18
+
++ Use haskell-gi 0.27.
+
 ### 3.0.16
 
 + Depend on haskell-gi >= 0.26.9 (see [issue 439](https://github.com/haskell-gi/haskell-gi/issues/439))
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # Documentation
 Autogenerated documentation for this package can be found at
 
-[https://hackage.haskell.org/package/gi-gdkx113-3.0.17/docs/GI-GdkX11.html](https://hackage.haskell.org/package/gi-gdkx113-3.0.17/docs/GI-GdkX11.html)
+[https://hackage.haskell.org/package/gi-gdkx113-3.0.18/docs/GI-GdkX11.html](https://hackage.haskell.org/package/gi-gdkx113-3.0.18/docs/GI-GdkX11.html)
 
 For general documentation on using [haskell-gi](https://github.com/haskell-gi/haskell-gi) based bindings, see [the project page](https://github.com/haskell-gi/haskell-gi) or [the Wiki](https://github.com/haskell-gi/haskell-gi/wiki).
diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -1,6 +1,6 @@
 {-# LANGUAGE OverloadedStrings #-}
 
-import Data.GI.CodeGen.CabalHooks (setupBinding, TaggedOverride(..))
+import Data.GI.CodeGen.CabalHooks (setupBinding, TaggedOverride(..), TaggedPkgConfigVersions(..))
 
 import qualified GI.GObject.Config as GObject
 import qualified GI.Gdk.Config as Gdk
@@ -10,12 +10,13 @@
 
 
 main :: IO ()
-main = setupBinding name version pkgName pkgVersion verbose overridesFile inheritedOverrides outputDir
+main = setupBinding name version pkgName pkgVersion verbose overridesFile inheritedOverrides depVersions outputDir
   where name = "GdkX11"
         version = "3.0"
         pkgName = "gi-gdkx113"
-        pkgVersion = "3.0.17"
+        pkgVersion = "3.0.18"
         overridesFile = Just "GdkX11.overrides"
         verbose = False
         outputDir = Nothing
         inheritedOverrides = [TaggedOverride "inherited:GObject" GObject.overrides, TaggedOverride "inherited:Gdk" Gdk.overrides, TaggedOverride "inherited:Gio" Gio.overrides, TaggedOverride "inherited:Cairo" Cairo.overrides, TaggedOverride "inherited:Xlib" Xlib.overrides]
+        depVersions = [TaggedPkgConfigVersions "GObject" GObject.pkgConfigVersions, TaggedPkgConfigVersions "Gdk" Gdk.pkgConfigVersions, TaggedPkgConfigVersions "Gio" Gio.pkgConfigVersions, TaggedPkgConfigVersions "Cairo" Cairo.pkgConfigVersions, TaggedPkgConfigVersions "Xlib" Xlib.pkgConfigVersions]
diff --git a/gi-gdkx113.cabal b/gi-gdkx113.cabal
--- a/gi-gdkx113.cabal
+++ b/gi-gdkx113.cabal
@@ -1,5 +1,5 @@
 name:                 gi-gdkx113
-version:              3.0.17
+version:              3.0.18
 synopsis:             GdkX11 3.x bindings
 description:          Bindings for GdkX11 3.x, autogenerated by haskell-gi.
 homepage:             https://github.com/haskell-gi/haskell-gi
@@ -16,7 +16,7 @@
 custom-setup
       setup-depends: base >= 4.11 && < 5,
                      Cabal >= 1.24 && < 4,
-                     haskell-gi >= 0.26.14 && < 0.27,
+                     haskell-gi >= 0.27 && < 0.28,
                      gi-gobject == 2.0.*,
                      gi-gdk3,
                      gi-gio == 2.0.*,
@@ -32,7 +32,7 @@
       pkgconfig-depends: gdk-x11-3.0
       build-depends: base >= 4.7 && <5,
                      haskell-gi-base >= 0.26 && < 0.27,
-                     haskell-gi >= 0.26.14 && < 0.27,
+                     haskell-gi >= 0.27 && < 0.28,
                      haskell-gi-overloading < 1.1,
                      gi-gobject == 2.0.*,
                      gi-gdk3,
