diff --git a/NgxExport.hs b/NgxExport.hs
--- a/NgxExport.hs
+++ b/NgxExport.hs
@@ -73,6 +73,9 @@
 #define PLACEHOLDER_BEFORE_CON
 #endif
 
+-- FIXME: for some reason this doesn't work for ghc-7.10, and was thus
+-- indirectly disabled by build-depends clause 'template-haskell >= 2.11.0.0'
+-- in cabal spec file
 pattern I :: EMPTY_CPROV (Num i, Integral a) => i -> a
 pattern I i <- (fromIntegral -> i)
 {-# COMPLETE I :: CInt #-}
diff --git a/ngx-export.cabal b/ngx-export.cabal
--- a/ngx-export.cabal
+++ b/ngx-export.cabal
@@ -1,5 +1,5 @@
 name:                       ngx-export
-version:                    0.8.0.4
+version:                    0.8.0.5
 synopsis:                   Helper module for Nginx haskell module
 description:                Helper module for
         <http://github.com/lyokha/nginx-haskell-module Nginx haskell module>
@@ -17,7 +17,7 @@
 
 library
   build-depends:            base >= 4.8 && < 5
-                          , template-haskell
+                          , template-haskell >= 2.11.0.0
                           , bytestring >= 0.10.0.0
                           , monad-loops >= 0.4.2
                           , binary >= 0.8.1.0
