diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -1,12 +1,11 @@
 {-# LANGUAGE OverloadedStrings #-}
 
-import Distribution.Simple (defaultMainWithHooks)
-import Data.GI.CodeGen.CabalHooks (simpleHaskellGIHooks)
+import Data.GI.CodeGen.CabalHooks (setupHaskellGIBinding)
 
-main = defaultMainWithHooks (simpleHaskellGIHooks name version verbose
-                             overridesFile outputDir)
-    where name = "Vte"
-          version = "2.91"
-          verbose = False
-          overridesFile = Nothing
-          outputDir = Nothing
+main :: IO ()
+main = setupHaskellGIBinding name version verbose overridesFile outputDir
+  where name = "Vte"
+        version = "2.91"
+        overridesFile = Nothing
+        verbose = False
+        outputDir = Nothing
diff --git a/gi-vte.cabal b/gi-vte.cabal
--- a/gi-vte.cabal
+++ b/gi-vte.cabal
@@ -1,38 +1,36 @@
-name:               gi-vte
-version:            2.91.2
-synopsis:           Vte bindings
-description:        Bindings for Vte, autogenerated by haskell-gi.
-homepage:           https://github.com/haskell-gi/haskell-gi
-license:            LGPL-2.1
-license-file:       LICENSE
-author:             Will Thompson, Iñaki García Etxebarria and Jonas Platte
-maintainer:         Iñaki García Etxebarria (garetxe@gmail.com)
-category:           Bindings
-build-type:         Custom
-cabal-version:      >= 1.24
+name:                 gi-vte
+version:              2.91.3
+synopsis:             Vte bindings
+description:          Bindings for Vte, autogenerated by haskell-gi.
+homepage:             https://github.com/haskell-gi/haskell-gi
+license:              LGPL-2.1
+license-file:         LICENSE
+author:               Will Thompson, Iñaki García Etxebarria and Jonas Platte
+maintainer:           Iñaki García Etxebarria (garetxe@gmail.com)
+category:             Bindings
+build-type:           Custom
+cabal-version:        >= 1.22
 
-custom-setup
-  setup-depends: base >= 4.7,
-                 Cabal >= 1.24,
-                 haskell-gi >= 0.15
+extra-source-files: stack.yaml 
 
 library
-    default-language:   Haskell2010
-    default-extensions: NoImplicitPrelude, ScopedTypeVariables, CPP, OverloadedStrings, NegativeLiterals, ConstraintKinds, TypeFamilies, MultiParamTypeClasses, KindSignatures, FlexibleInstances, UndecidableInstances, DataKinds, FlexibleContexts
-    other-extensions:   PatternSynonyms ViewPatterns
-    ghc-options:        -fno-warn-unused-imports -fno-warn-warnings-deprecations
+      default-language: Haskell2010
+      default-extensions: NoImplicitPrelude, ScopedTypeVariables, CPP, OverloadedStrings, NegativeLiterals, ConstraintKinds, TypeFamilies, MultiParamTypeClasses, KindSignatures, FlexibleInstances, UndecidableInstances, DataKinds, FlexibleContexts
+      other-extensions: PatternSynonyms, ViewPatterns
+      ghc-options: -fno-warn-unused-imports -fno-warn-warnings-deprecations
 
-    pkgconfig-depends:  vte-2.91
-    build-depends: base >= 4.7 && <5,
-        haskell-gi-base >= 0.15 && < 1,
-        gi-atk == 2.0.*,
-        gi-glib == 2.0.*,
-        gi-gobject == 2.0.*,
-        gi-gdk == 3.0.*,
-        gi-gio == 2.0.*,
-        gi-gtk == 3.0.*,
-        gi-pango == 1.0.*,
-        bytestring >= 0.10,
-        containers >= 0.5,
-        text >= 1.0,
-        transformers >= 0.4
+      pkgconfig-depends: vte-2.91
+      build-depends: base >= 4.7 && <5,
+                     haskell-gi-base >= 0.17 && < 1,
+                     haskell-gi >= 0.17.3 && < 1,
+                     gi-pango == 1.0.*,
+                     gi-gtk == 3.0.*,
+                     gi-gio == 2.0.*,
+                     gi-gdk == 3.0.*,
+                     gi-gobject == 2.0.*,
+                     gi-glib == 2.0.*,
+                     gi-atk == 2.0.*,
+                     bytestring >= 0.10 && < 1,
+                     containers >= 0.5 && < 1,
+                     text >= 1.0 && < 2,
+                     transformers >= 0.4 && < 1
diff --git a/stack.yaml b/stack.yaml
new file mode 100644
--- /dev/null
+++ b/stack.yaml
@@ -0,0 +1,7 @@
+packages:
+- '.'
+extra-deps:
+- 'haskell-gi-0.17.3'
+explicit-setup-deps:
+  ! '*': true
+resolver: nightly-2016-05-21
