diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,5 @@
+- 0.1.4.2 (2016-12-05)
+    - Fix compilation with generics-sop-0.2.3.0
 - 0.1.4.1 (2016-09-20)
     - Print mismatching hashes in base16 encoding
 - 0.1.4.0 (2016-04-12)
diff --git a/binary-tagged.cabal b/binary-tagged.cabal
--- a/binary-tagged.cabal
+++ b/binary-tagged.cabal
@@ -3,7 +3,7 @@
 -- see: https://github.com/sol/hpack
 
 name:           binary-tagged
-version:        0.1.4.1
+version:        0.1.4.2
 synopsis:       Tagged binary serialisation.
 description:    Check <https://github.com/phadej/binary-tagged#readme README on Github>
 category:       Web
diff --git a/src/Data/Binary/Tagged.hs b/src/Data/Binary/Tagged.hs
--- a/src/Data/Binary/Tagged.hs
+++ b/src/Data/Binary/Tagged.hs
@@ -354,9 +354,11 @@
 -- SOP helpers
 -------------------------------------------------------------------------------
 
+#if !MIN_VERSION_generics_sop(0,2,3)
 datatypeName :: DatatypeInfo xss -> DatatypeName
 datatypeName (Newtype _ d _)  = d
 datatypeName (ADT _ d _)      = d
+#endif
 
 -- | Interleaving
 --
