attoparsec-aeson 2.2.0.0 → 2.2.0.1
raw patch · 2 files changed
+9/−8 lines, 2 filesdep ~bytestringdep ~primitivedep ~textPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: bytestring, primitive, text
API changes (from Hackage documentation)
Files
attoparsec-aeson.cabal view
@@ -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
src/Data/Aeson/Internal/Text.hs view
@@ -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