with-utf8
text
Our great sponsors
with-utf8 | text | |
---|---|---|
4 | 13 | |
52 | 395 | |
- | 1.5% | |
6.3 | 8.4 | |
25 days ago | 1 day ago | |
Haskell | C++ | |
Mozilla Public License 2.0 | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
with-utf8
-
Best resources to learn haskell?
Invalid byte sequence sounds like a locale issue (see this blog post).
-
What Is IO Monad?
The real fix will happen when Data.Text moves from UTF-16 to UTF-8:
https://discourse.haskell.org/t/hf-tech-proposal-1-utf-8-enc...
Fortunately this proposal has been accepted, but I don't know the timeline for its implementation in GHC.
Until then, working with UTF-8 is kind of convoluted
https://serokell.io/blog/haskell-with-utf8
Also: libraries need to be fixed to accept Data.Text instead of String. IsString helps (it's a typeclass that contains all string types) but only if APIs take it instead of defaulting to String. Adding random string conversions to cope with legacy APIs is very annoying.
-
Using VS Code with Haskell
without this I get a build error (see here
text
- Super Colliding Nix Stores: Nix Flakes for Millions of Developers
-
The Spinnaker Programming Language
String is a linked list of UTF-32 codepoints, which is just as bad as it sounds. Haskell programmers usually use Text from the text package instead.
-
[ANN] GHCup-0.1.19.0 released
This is the first release that was executed via the new GitHub CI. Everything went smoothly, except for an unexpected packaging bug on windows due to text-2.0 linking against libstdc++ by default.
-
Limits of possible performance improvements of Haskell/GHC code?
In addition to what's mentioned, the "default" libraries people use are often not the best-performing ones. E.g. Data.Vector.Hashtables is often much faster than Data.HashMap.Strict (which again is typically faster than Data.Map). And we find performance papercuts in common libraries that may simply be due to not enough people optimising for speed.
-
What is the idiomatic way to test "hidden" module functions in a Cabal project
Used by nearly every Haskell project: https://hackage.haskell.org/package/text 60% of the modules are ".Internal".
- Monthly Hask Anything (June 2022)
-
Haskell - Important Libraries
text
-
Switch internal representation to UTF8 by Bodigrim · Pull Request #365 · haskell/text
Here is a representative patch for text: https://github.com/haskell/text/pull/365/commits/37a2157245457a287d638bbceb472fe93b71f224 Hopefully it clarifies why achieving C performance is problematic even if you have enough primitive operations.
-
Monthly Hask Anything (January 2021)
u/snoyberg laments here that a consequence of Text using unpinned memory is that the FFI can't operate directly on it. However, there do appear to be some places where foreign imported functions are called on the underlying unpinned ByteArray# (see how Text.copy calls this).
What are some alternatives?
attempt - Concrete data type for handling extensible exceptions as failures.
base58string - Bitcoin script compilation, manipulation and decompilation
algebraic-classes - Conversions between algebraic classes and F-algebras.
text-trie - An efficient finite map from Text to values, based on bytestring-trie.
gps2htmlReport - Generates a HTML page report detailing a GPS journey, with charts, statistics and an OpenStreetMap graphic.
text-binary - Binary instances for strict and lazy Text data types
CTRex - Open records for Haskell
text-ansi
leetify - Leetify some text!
data-foldapp - Haskell library for folding function applications. A framework for variadic functions.
text-short - Memory-efficient representation of Unicode text strings
text-icu - This package provides the Haskell Data.Text.ICU library, for performing complex manipulation of Unicode text.