diff --git a/src/Control/Monad/Trace/Internal.hs b/src/Control/Monad/Trace/Internal.hs
--- a/src/Control/Monad/Trace/Internal.hs
+++ b/src/Control/Monad/Trace/Internal.hs
@@ -132,7 +132,7 @@
 
 hexDecode :: Text-> Maybe ByteString
 hexDecode t = case Base16.decode $ BS.Char8.pack $ T.unpack t of
-  (bs, trail) | BS.null trail -> Just bs
+  Right bs -> Just bs
   _ -> Nothing
 
 hexEncode :: ByteString -> Text
diff --git a/tracing.cabal b/tracing.cabal
--- a/tracing.cabal
+++ b/tracing.cabal
@@ -1,7 +1,7 @@
-cabal-version: 1.12
+cabal-version: 2.0
 
 name: tracing
-version: 0.0.6.0
+version: 0.0.6.2
 synopsis: Distributed tracing
 description:
   An OpenTracing-compliant, simple, and extensible distributed tracing library.
@@ -34,7 +34,7 @@
   build-depends:
       aeson >= 1.4
     , base >= 4.9 && < 5
-    , base16-bytestring >= 0.1 && < 1.0.0.0
+    , base16-bytestring >= 1.0
     , bytestring >= 0.10
     , case-insensitive >= 1.2
     , containers >= 0.6
