diff --git a/Data/Generics/SYB/WithClass/Derive.hs b/Data/Generics/SYB/WithClass/Derive.hs
--- a/Data/Generics/SYB/WithClass/Derive.hs
+++ b/Data/Generics/SYB/WithClass/Derive.hs
@@ -244,8 +244,13 @@
                [Constructor])   -- The constructors
 typeInfo d
  = case d of
+#if MIN_VERSION_template_haskell(2,11,0)
+   DataD    _ n ps _ cs _ -> return (n, map varName ps, map conA cs)
+   NewtypeD _ n ps _ c  _ -> return (n, map varName ps, [conA c])
+#else
    DataD    _ n ps cs _ -> return (n, map varName ps, map conA cs)
    NewtypeD _ n ps c  _ -> return (n, map varName ps, [conA c])
+#endif
    _ -> error ("derive: not a data type declaration: " ++ show d)
  where conA (NormalC c xs)   = (c, length xs, Nothing, map snd xs)
        conA (InfixC x1 c x2) = conA (NormalC c [x1, x2])
diff --git a/syb-with-class.cabal b/syb-with-class.cabal
--- a/syb-with-class.cabal
+++ b/syb-with-class.cabal
@@ -1,5 +1,5 @@
 Name:               syb-with-class
-Version:            0.6.1.6
+Version:            0.6.1.7
 License:            BSD3
 License-file:       LICENSE
 Copyright:          2004 - 2008 The University of Glasgow, CWI,
@@ -14,18 +14,18 @@
 Synopsis:           Scrap Your Boilerplate With Class
 Description:
     Classes, and Template Haskell code to generate instances, for the
-    Scrap Your Boilerplate With Class system.    
+    Scrap Your Boilerplate With Class system.
 Category:           Data
-Tested-With:        GHC==7.2.1
+Tested-With:        GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.2, GHC==8.0.1
 Build-Type:         Simple
 Cabal-Version:      >= 1.6
 
 source-repository head
-  type:     darcs
-  location: http://patch-tag.com/r/Saizan/syb-with-class/
+  type:     git
+  location: https://github.com/Happstack/syb-with-class
 
-Library 
-    Build-Depends:      base >= 3 && < 5, template-haskell >= 2.4 && < 2.11, bytestring, array, containers
+Library
+    Build-Depends:      base >= 3 && < 5, template-haskell >= 2.4 && < 2.12, bytestring, array, containers
     Exposed-modules:
         Data.Generics.SYB.WithClass.Basics
         Data.Generics.SYB.WithClass.Context
