Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
head.hackage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
head.hackage
Commits
3d61ce1e
Commit
3d61ce1e
authored
1 year ago
by
Teo Camarasu
Browse files
Options
Downloads
Patches
Plain Diff
Add attoparsec-aeson patch
parent
cad0270a
No related branches found
No related tags found
1 merge request
!317
Add some patches
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patches/attoparsec-aeson-2.2.0.0.patch
+22
-0
22 additions, 0 deletions
patches/attoparsec-aeson-2.2.0.0.patch
with
22 additions
and
0 deletions
patches/attoparsec-aeson-2.2.0.0.patch
0 → 100644
+
22
−
0
View file @
3d61ce1e
diff --git a/src/Data/Aeson/Internal/Text.hs b/src/Data/Aeson/Internal/Text.hs
index e981c94..6cccd88 100644
--- a/src/Data/Aeson/Internal/Text.hs
+++ b/src/Data/Aeson/Internal/Text.hs
@@ -8,7 +8,7 @@
import Data.ByteString (ByteString)
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 @@
unsafeDecodeASCII :: ByteString -> T.Text
#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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment