It’s indeed quite unfortunate that we have the # suffix for both unlfited and unboxed types. Really did bit me more than once
3 Likes
Thanks @danidiaz, fixed in ByteArray# is unlifted, not unboxed (!9143) · Merge requests · Glasgow Haskell Compiler / GHC · GitLab.
4 Likes
So, that fancy linear builder could be working for all the types mentioned?
1 Like
No, that one was very much text specific.
1 Like
And now all three PRs are merged: starting from primitive-0.8, text-2.1 and bytestring-0.12 all of them will share the same underlying type for unpinned byte arrays.
@wiz, back to your question: @oberblastmeister recently suggested that text-builder-linear can produce strict ByteStrings as well: Allow building `ByteString` and `Text` · Issue #4 · Bodigrim/linear-builder · GitHub.
25 Likes
Finally, primitive-0.8, text-2.1 and bytestring-0.12 all have been released. Happy hacking!
23 Likes