diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,3 +1,7 @@
+### 3.0.31
+
++ Use haskell-gi 0.27.
+
 ### 3.0.29
 
 + 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-gtksource3-3.0.30/docs/GI-GtkSource.html](https://hackage.haskell.org/package/gi-gtksource3-3.0.30/docs/GI-GtkSource.html)
+[https://hackage.haskell.org/package/gi-gtksource3-3.0.31/docs/GI-GtkSource.html](https://hackage.haskell.org/package/gi-gtksource3-3.0.31/docs/GI-GtkSource.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.Atk.Config as Atk
 import qualified GI.GLib.Config as GLib
@@ -14,12 +14,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 = "GtkSource"
         version = "3.0"
         pkgName = "gi-gtksource3"
-        pkgVersion = "3.0.30"
+        pkgVersion = "3.0.31"
         overridesFile = Just "GtkSource.overrides"
         verbose = False
         outputDir = Nothing
         inheritedOverrides = [TaggedOverride "inherited:Atk" Atk.overrides, TaggedOverride "inherited:GLib" GLib.overrides, TaggedOverride "inherited:GObject" GObject.overrides, TaggedOverride "inherited:Gdk" Gdk.overrides, TaggedOverride "inherited:GdkPixbuf" GdkPixbuf.overrides, TaggedOverride "inherited:Gio" Gio.overrides, TaggedOverride "inherited:Gtk" Gtk.overrides, TaggedOverride "inherited:Pango" Pango.overrides, TaggedOverride "inherited:Cairo" Cairo.overrides]
+        depVersions = [TaggedPkgConfigVersions "Atk" Atk.pkgConfigVersions, TaggedPkgConfigVersions "GLib" GLib.pkgConfigVersions, TaggedPkgConfigVersions "GObject" GObject.pkgConfigVersions, TaggedPkgConfigVersions "Gdk" Gdk.pkgConfigVersions, TaggedPkgConfigVersions "GdkPixbuf" GdkPixbuf.pkgConfigVersions, TaggedPkgConfigVersions "Gio" Gio.pkgConfigVersions, TaggedPkgConfigVersions "Gtk" Gtk.pkgConfigVersions, TaggedPkgConfigVersions "Pango" Pango.pkgConfigVersions, TaggedPkgConfigVersions "Cairo" Cairo.pkgConfigVersions]
diff --git a/gi-gtksource3.cabal b/gi-gtksource3.cabal
--- a/gi-gtksource3.cabal
+++ b/gi-gtksource3.cabal
@@ -1,5 +1,5 @@
 name:                 gi-gtksource3
-version:              3.0.30
+version:              3.0.31
 synopsis:             GtkSource 3.x bindings
 description:          Bindings for GtkSource 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-cairo == 1.0.*,
                      gi-pango == 1.0.*,
                      gi-gtk3,
@@ -36,7 +36,7 @@
       pkgconfig-depends: gtksourceview-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-cairo == 1.0.*,
                      gi-pango == 1.0.*,
