diff --git a/Data/StackPrism/TH.hs b/Data/StackPrism/TH.hs
--- a/Data/StackPrism/TH.hs
+++ b/Data/StackPrism/TH.hs
@@ -43,9 +43,17 @@
   info <- reify name
   routers <-
     case info of
+#if MIN_VERSION_template_haskell(2,11,0)
+      TyConI (DataD _ _ tyArgs _ cons _)   ->
+#else
       TyConI (DataD _ _ tyArgs cons _)   ->
+#endif
         mapM (deriveStackPrism name tyArgs (length cons /= 1)) cons
+#if MIN_VERSION_template_haskell(2,11,0)
+      TyConI (NewtypeD _ _ tyArgs _ con _) ->
+#else
       TyConI (NewtypeD _ _ tyArgs con _) ->
+#endif
         (:[]) <$> deriveStackPrism name tyArgs False con
       _ ->
         fail $ show name ++ " is not a datatype."
diff --git a/stack-prism.cabal b/stack-prism.cabal
--- a/stack-prism.cabal
+++ b/stack-prism.cabal
@@ -1,21 +1,22 @@
 Name:           stack-prism
-Version:        0.1.4
+Version:        0.1.5
 Synopsis:       Stack prisms
 Description:    Haskell lens prisms that use stack types
 
 
 Author:         Martijn van Steenbergen, Sjoerd Visscher
 Maintainer:     martijn@van.steenbergen.nl
+Category:       Data
+License:        BSD3
+License-file:   LICENSE
 Stability:      Experimental
-Copyright:      Some Rights Reserved (CC) 2014 Martijn van Steenbergen
+Copyright:      Some Rights Reserved (CC) 2014-2016 Martijn van Steenbergen
 Homepage:       https://github.com/MedeaMelana/stack-prism
 Bug-reports:    https://github.com/MedeaMelana/stack-prism/issues
 
 
 Cabal-Version:  >= 1.8
-License:        BSD3
-License-file:   LICENSE
-Category:       Data
+Tested-With:    GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
 Build-type:     Simple
 
 Source-Repository head
@@ -23,14 +24,15 @@
   Location:     https://github.com/MedeaMelana/stack-prism
 
 Library
+  Extensions:       CPP
   Exposed-Modules:  Data.StackPrism,
                     Data.StackPrism.TH,
                     Data.StackPrism.Generic
   Build-Depends:    base >= 3.0 && < 5,
-                    profunctors >= 4.0 && < 5.2,
+                    profunctors >= 4.0 && < 5.3,
                     tagged >= 0.4.4 && < 1,
-                    transformers >= 0.2 && < 0.5,
-                    template-haskell >= 2.8 && < 2.11
+                    transformers >= 0.2 && < 0.6,
+                    template-haskell >= 2.9 && < 2.12
 
 Test-Suite tests
   Type:             exitcode-stdio-1.0
@@ -40,4 +42,4 @@
                     TestTH
   Build-Depends:    base >= 3.0 && < 5,
                     stack-prism,
-                    template-haskell >= 2.8 && < 2.11
+                    template-haskell >= 2.9 && < 2.12
