diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,3 +1,7 @@
+### 2.0.31
+
++ Use haskell-gi 0.27.
+
 ### 2.0.30
 
 + Depend on haskell-gi >= 0.26.9 (see [issue 439](https://github.com/haskell-gi/haskell-gi/issues/439))
diff --git a/GLib.overrides b/GLib.overrides
--- a/GLib.overrides
+++ b/GLib.overrides
@@ -21,6 +21,15 @@
 # See https://github.com/haskell-gi/haskell-gi/issues/173
 set-attr GLib/Thread/self/@return-value transfer-ownership none
 
+# Builders allocated with g_variant_builder_new() and
+# g_variant_dict_new() are reference counted, and freeing a
+# zero-filled one emits critical warnings, so do not offer a
+# zero-filled constructor for these (they only get a known size
+# since we fix the struct layouts, see
+# https://github.com/haskell-gi/haskell-gi/issues/485).
+alloc-info VariantBuilder calloc=none
+alloc-info VariantDict calloc=none
+
 if windows
    # Windows only macros in glib/gfileutils.h
    set-attr GLib/file_get_contents c:identifier g_file_get_contents_utf8
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-glib-2.0.30/docs/GI-GLib.html](https://hackage.haskell.org/package/gi-glib-2.0.30/docs/GI-GLib.html)
+[https://hackage.haskell.org/package/gi-glib-2.0.31/docs/GI-GLib.html](https://hackage.haskell.org/package/gi-glib-2.0.31/docs/GI-GLib.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,16 +1,17 @@
 {-# LANGUAGE OverloadedStrings #-}
 
-import Data.GI.CodeGen.CabalHooks (setupBinding, TaggedOverride(..))
+import Data.GI.CodeGen.CabalHooks (setupBinding, TaggedOverride(..), TaggedPkgConfigVersions(..))
 
 
 
 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 = "GLib"
         version = "2.0"
         pkgName = "gi-glib"
-        pkgVersion = "2.0.30"
+        pkgVersion = "2.0.31"
         overridesFile = Just "GLib.overrides"
         verbose = False
         outputDir = Nothing
         inheritedOverrides = []
+        depVersions = []
diff --git a/gi-glib.cabal b/gi-glib.cabal
--- a/gi-glib.cabal
+++ b/gi-glib.cabal
@@ -1,5 +1,5 @@
 name:                 gi-glib
-version:              2.0.30
+version:              2.0.31
 synopsis:             GLib bindings
 description:          Bindings for GLib, 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.9 && < 0.27
+                     haskell-gi >= 0.27 && < 0.28
 
 library
       default-language: Haskell2010
@@ -27,7 +27,7 @@
       pkgconfig-depends: glib-2.0
       build-depends: base >= 4.7 && <5,
                      haskell-gi-base >= 0.26 && < 0.27,
-                     haskell-gi >= 0.26.9 && < 0.27,
+                     haskell-gi >= 0.27 && < 0.28,
                      haskell-gi-overloading < 1.1,
                      bytestring >= 0.10 && < 1,
                      containers >= 0.5 && < 1,
@@ -123,7 +123,6 @@
                        GI.GLib.Structs.Tree,
                        GI.GLib.Structs.TreeNode,
                        GI.GLib.Structs.Tuples,
-                       GI.GLib.Structs.UnixPipe,
                        GI.GLib.Structs.Uri,
                        GI.GLib.Structs.UriParamsIter,
                        GI.GLib.Structs.VariantBuilder,
@@ -213,7 +212,6 @@
                        GI.GLib.Structs.Tree,
                        GI.GLib.Structs.TreeNode,
                        GI.GLib.Structs.Tuples,
-                       GI.GLib.Structs.UnixPipe,
                        GI.GLib.Structs.Uri,
                        GI.GLib.Structs.UriParamsIter,
                        GI.GLib.Structs.VariantBuilder,
