diff --git a/happstack-server.cabal b/happstack-server.cabal
--- a/happstack-server.cabal
+++ b/happstack-server.cabal
@@ -1,5 +1,5 @@
 Name:                happstack-server
-Version:             7.4.6.1
+Version:             7.4.6.2
 Synopsis:            Web related tools and services.
 Description:         Happstack Server provides an HTTP server and a rich set of functions for routing requests, handling query parameters, generating responses, working with cookies, serving files, and more. For in-depth documentation see the Happstack Crash Course <http://happstack.com/docs/crashcourse/index.html>
 License:             BSD3
@@ -11,6 +11,7 @@
 Build-Type:          Simple
 Cabal-Version:       >= 1.8
 Extra-Source-Files:  tests/Happstack/Server/Tests.hs README.md
+tested-with:         GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.2, GHC==8.0.1
 
 source-repository head
     type:     git
diff --git a/src/Happstack/Server/Internal/SocketTH.hs b/src/Happstack/Server/Internal/SocketTH.hs
--- a/src/Happstack/Server/Internal/SocketTH.hs
+++ b/src/Happstack/Server/Internal/SocketTH.hs
@@ -20,7 +20,11 @@
                  in
                  do info <- reify d
                     case info of
+#if MIN_VERSION_template_haskell(2,11,0)
+                      TyConI (DataD _ _ _ _ cs _) ->
+#else
                       TyConI (DataD _ _ _ cs _) ->
+#endif
                         if any isInet6 cs
                           then [| True |]
                           else [| False |]
