diff --git a/attoparsec-aeson.cabal b/attoparsec-aeson.cabal
--- a/attoparsec-aeson.cabal
+++ b/attoparsec-aeson.cabal
@@ -1,6 +1,6 @@
 cabal-version: 1.12
 name:          attoparsec-aeson
-version:       2.2.0.0
+version:       2.2.0.1
 synopsis:      Parsing of aeson's Value with attoparsec
 description:
   Parsing of aeson's Value with attoparsec, originally from aeson.
@@ -26,8 +26,9 @@
    || ==8.10.7
    || ==9.0.2
    || ==9.2.8
-   || ==9.4.5
-   || ==9.6.2
+   || ==9.4.7
+   || ==9.6.3
+   || ==9.8.1
 
 library
   hs-source-dirs:   src
@@ -46,11 +47,11 @@
       aeson               >=2.2.0.0  && <2.3
     , attoparsec          >=0.14.2   && <0.15
     , base                >=4.10.0.0 && <5
-    , bytestring          >=0.10.8.2 && <0.12
+    , bytestring          >=0.10.8.2 && <0.13
     , integer-conversion  >=0.1      && <0.2
-    , primitive           >=0.8.0.0  && <0.9
+    , primitive           >=0.8.0.0  && <0.10
     , scientific          >=0.3.7.0  && <0.4
-    , text                >=1.2.3.0  && <1.3  || >=2.0 && <2.1
+    , text                >=1.2.3.0  && <1.3  || >=2.0 && <2.2
     , vector              >=0.12.0.1 && <0.14
 
 source-repository head
diff --git a/src/Data/Aeson/Internal/Text.hs b/src/Data/Aeson/Internal/Text.hs
--- a/src/Data/Aeson/Internal/Text.hs
+++ b/src/Data/Aeson/Internal/Text.hs
@@ -8,7 +8,7 @@
 import qualified Data.Text                      as T
 
 #if MIN_VERSION_text(2,0,0)
-import           Data.Text.Array                (Array (..))
+import qualified Data.Text.Array                as A
 import qualified Data.Text.Internal             as T (Text (..))
 
 import qualified Data.ByteString.Short.Internal as SBS
@@ -27,7 +27,7 @@
 
 #if MIN_VERSION_text(2,0,0)
 unsafeDecodeASCII bs = withBS bs $ \_fp len -> if len == 0 then T.empty else
-  let !(SBS.SBS arr) = SBS.toShort bs in T.Text (ByteArray arr) 0 len
+  let !(SBS.SBS arr) = SBS.toShort bs in T.Text (A.ByteArray arr) 0 len
 
 #else
 unsafeDecodeASCII = TE.decodeLatin1
