diff --git a/basic-sop.cabal b/basic-sop.cabal
--- a/basic-sop.cabal
+++ b/basic-sop.cabal
@@ -1,5 +1,5 @@
 name:                basic-sop
-version:             0.2.0.1
+version:             0.2.0.2
 synopsis:            Basic examples and functions for generics-sop
 description:
   This library contains various small examples of generic functions
@@ -16,7 +16,7 @@
 category:            Generics
 build-type:          Simple
 cabal-version:       >=1.10
-tested-with:         GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1, GHC == 8.0.2, GHC == 8.1.*
+tested-with:         GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1, GHC == 8.0.2, GHC == 8.1.*
 
 source-repository head
   type:                git
@@ -29,7 +29,7 @@
                        Generics.SOP.Skeleton
                        Generics.SOP.NFData
   build-depends:       base                 >= 4.6  && < 5,
-                       generics-sop         >= 0.2  && < 0.3,
+                       generics-sop         >= 0.2  && < 0.4,
                        text                 >= 1.1  && < 1.3,
                        QuickCheck           >= 2.7  && < 2.10,
                        deepseq              >= 1.3  && < 1.5
diff --git a/src/Generics/SOP/Skeleton.hs b/src/Generics/SOP/Skeleton.hs
--- a/src/Generics/SOP/Skeleton.hs
+++ b/src/Generics/SOP/Skeleton.hs
@@ -93,7 +93,12 @@
     aux (K n)  = I $ mapException (addFieldName n) skeleton
 
 addFieldName :: FieldName -> ErrorCall -> ErrorCall
+#if MIN_VERSION_base(4,9,0)
+addFieldName n (ErrorCallWithLocation str loc) =
+  ErrorCallWithLocation (n ++ ": " ++ str) loc
+#else
 addFieldName n (ErrorCall str) = ErrorCall (n ++ ": " ++ str)
+#endif
 
 ps :: Proxy Skeleton
 ps = Proxy
