diff --git a/src/Data/Unjson.hs b/src/Data/Unjson.hs
--- a/src/Data/Unjson.hs
+++ b/src/Data/Unjson.hs
@@ -1,4 +1,7 @@
 {-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ < 710
+{-# LANGUAGE OverlappingInstances #-}
+#endif
 
 -- | @Unjson@: bidirectional JSON (de)serialization with strong error
 -- reporting capabilities and automatic documentation generation.
diff --git a/test/Test.hs b/test/Test.hs
--- a/test/Test.hs
+++ b/test/Test.hs
@@ -1,4 +1,5 @@
 {-# LANGUAGE CPP #-}
+
 module Main where
 
 import qualified Data.Text as Text
diff --git a/unjson.cabal b/unjson.cabal
--- a/unjson.cabal
+++ b/unjson.cabal
@@ -1,5 +1,5 @@
 name:                unjson
-version:             0.14.1.2
+version:             0.14.1.3
 synopsis:            Bidirectional JSON parsing and generation.
 description:         Bidirectional JSON parsing and generation
                      with automatic documentation support.
@@ -25,13 +25,13 @@
 source-repository this
   type:     git
   location: https://github.com/scrive/unjson.git
-  tag:      0.14.1.2
+  tag:      0.14.1.3
 
 library
   exposed-modules:     Data.Unjson
   -- other-modules:
   -- other-extensions:
-  build-depends:       base >= 4.5 && < 5, text, aeson >= 1.0 && < 1.2,
+  build-depends:       base >= 4.5 && < 5, text, aeson >= 1.0 && < 1.3,
                        free, scientific, attoparsec,
                        unordered-containers, vector, pretty,
                        bytestring >= 0.10, containers, hashable,
@@ -55,8 +55,8 @@
 Test-Suite test
   type:                exitcode-stdio-1.0
   main-is:             Test.hs
-  hs-source-dirs:      src, test
-  build-depends:       base >= 4.5 && < 5, text, aeson >= 1.0 && < 1.2,
+  hs-source-dirs:      test
+  build-depends:       unjson, base, text, aeson,
                        free, scientific, attoparsec,
                        unordered-containers, vector, HUnit, bytestring >= 0.10,
                        pretty, primitive, containers, time,
@@ -70,8 +70,6 @@
                        FlexibleInstances,
                        GADTs,
                        GeneralizedNewtypeDeriving,
-                       OverlappingInstances,
-                       OverloadedStrings,
                        OverloadedStrings,
                        RankNTypes,
                        ScopedTypeVariables,
