Index: haskell-lens/lens.cabal
===================================================================
--- haskell-lens.orig/lens.cabal	2015-08-15 14:18:19.157739242 +0200
+++ haskell-lens/lens.cabal	2015-08-15 14:18:19.153739174 +0200
@@ -145,6 +145,11 @@
   default: True
   manual: True
 
+-- You can disable the templates test suite with -f-test-templates
+flag test-templates
+  default: True
+  manual: True
+
 -- You can disable the doctests test suite with -f-test-doctests
 flag test-doctests
   default: True
@@ -327,6 +332,9 @@
   ghc-options: -Wall -threaded
   hs-source-dirs: tests
 
+  if !flag(test-templates)
+    buildable: False
+
   if flag(dump-splices)
     ghc-options: -ddump-splices
 
