diff --git a/Data/Complex/Generic/TH.hs b/Data/Complex/Generic/TH.hs
--- a/Data/Complex/Generic/TH.hs
+++ b/Data/Complex/Generic/TH.hs
@@ -1,7 +1,7 @@
 {-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, FlexibleInstances, UndecidableInstances #-}
 {- |
 Module      :  Data.Complex.Generic.TH
-Copyright   :  (c) Claude Heiland-Allen 2012
+Copyright   :  (c) Claude Heiland-Allen 2012,2017
 License     :  BSD3
 
 Maintainer  :  claude@mathr.co.uk
@@ -75,8 +75,8 @@
   where
     cTy = conT cTy'
     rTy = conT rTy'
-    mkRectI = global mkRectI'
-    rectI = global rectI'
+    mkRectI = varE mkRectI'
+    rectI = varE rectI'
 
 -- | Derive instances for 'Floating' types.
 deriveComplexF :: Name {- ^ complex type -} -> Name {- ^ real type -} -> Name {- ^ constructor -} -> Name {- ^ destructor -} -> Q [Dec]
@@ -135,8 +135,8 @@
   where
     cTy = conT cTy'
     rTy = conT rTy'
-    mkRectI = global mkRectI'
-    rectI = global rectI'
+    mkRectI = varE mkRectI'
+    rectI = varE rectI'
 
 -- | Derive instances for 'Num' types.
 deriveComplexN :: Name {- ^ complex type -} -> Name {- ^ real type -} -> Name {- ^ constructor -} -> Name {- ^ destructor -} -> Q [Dec]
@@ -167,8 +167,8 @@
   where
     cTy = conT cTy'
     rTy = conT rTy'
-    mkRectI = global mkRectI'
-    rectI = global rectI'
+    mkRectI = varE mkRectI'
+    rectI = varE rectI'
 
 {-
 -- | Derive instances for 'Fractional' types with one class constraint.
@@ -209,6 +209,6 @@
     cTy = conT cTy'
     sTy = conT sTy'
     rTy = conT rTy'
-    mkRectI = global mkRectI'
-    rectI = global rectI'
+    mkRectI = varE mkRectI'
+    rectI = varE rectI'
 -}
diff --git a/complex-generic.cabal b/complex-generic.cabal
--- a/complex-generic.cabal
+++ b/complex-generic.cabal
@@ -1,5 +1,5 @@
 name:                complex-generic
-version:             0.1.1
+version:             0.1.1.1
 synopsis:            complex numbers with non-mandatory RealFloat
 description:
   The base package's 'Data.Complex' has a 'RealFloat' requirement for
@@ -9,7 +9,7 @@
   with template haskell helps reduce excessive boilerplate and avoids
   instance overlap.
 
-homepage:            https://gitorious.org/complex-generic
+homepage:            https://code.mathr.co.uk/complex-generic
 license:             BSD3
 license-file:        LICENSE
 author:              Claude Heiland-Allen
@@ -25,14 +25,14 @@
     Data.Complex.Generic.TH,
     Data.Complex.Generic.Class
   build-depends:
-    base < 5,
-    template-haskell
+    base < 4.10,
+    template-haskell < 2.12
 
 source-repository head
   type:     git
-  location: git://gitorious.org/complex-generic/complex-generic.git
+  location: https://code.mathr.co.uk/complex-generic.git
 
 source-repository this
   type:     git
-  location: git://gitorious.org/complex-generic/complex-generic.git
-  tag:      v0.1.1
+  location: https://code.mathr.co.uk/complex-generic.git
+  tag:      v0.1.1.1
