diff --git a/Pango.overrides b/Pango.overrides
--- a/Pango.overrides
+++ b/Pango.overrides
@@ -3,6 +3,10 @@
 # https://bugzilla.gnome.org/show_bug.cgi?id=766452
 alloc-info Attribute calloc=none copy=pango_attribute_copy free=pango_attribute_destroy
 
+# Wrong annotation
+# https://mail.gnome.org/archives/gir-devel-list/2016-October/msg00000.html
+set-attr Pango/Matrix/transform_pixel_rectangle/@parameters/rect direction in
+
 set-attr Pango/AttrFontDesc/new introspectable 1
 set-attr Pango/AttrFontFeatures/new introspectable 1
 set-attr Pango/AttrLanguage/new introspectable 1
diff --git a/gi-pango.cabal b/gi-pango.cabal
--- a/gi-pango.cabal
+++ b/gi-pango.cabal
@@ -1,5 +1,5 @@
 name:                 gi-pango
-version:              1.0.6
+version:              1.0.7
 synopsis:             Pango bindings
 description:          Bindings for Pango, autogenerated by haskell-gi.
 homepage:             https://github.com/haskell-gi/haskell-gi
@@ -9,14 +9,9 @@
 maintainer:           Iñaki García Etxebarria (garetxe@gmail.com)
 category:             Bindings
 build-type:           Custom
-cabal-version:        >= 1.24
-
-extra-source-files: Pango.overrides
+cabal-version:        >= 1.22
 
-custom-setup
-      setup-depends: base >= 4.7 && < 5,
-                     Cabal >= 1.24,
-                     haskell-gi >= 0.18 && < 1
+extra-source-files: stack.yaml Pango.overrides
 
 Flag overloaded-methods
       Description: Generate support for overloaded methods.
@@ -35,7 +30,8 @@
 
       pkgconfig-depends: pango >= 1.0 && < 2
       build-depends: base >= 4.7 && <5,
-                     haskell-gi-base >= 0.18 && < 1,
+                     haskell-gi-base >= 0.20 && < 1,
+                     haskell-gi >= 0.20 && < 1,
                      gi-gobject == 2.0.*,
                      gi-glib == 2.0.*,
                      bytestring >= 0.10 && < 1,
diff --git a/stack.yaml b/stack.yaml
new file mode 100644
--- /dev/null
+++ b/stack.yaml
@@ -0,0 +1,8 @@
+packages:
+- '.'
+extra-deps:
+- 'haskell-gi-0.20'
+- 'haskell-gi-base-0.20'
+explicit-setup-deps:
+  ! '*': true
+resolver: lts-7.11
