aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-text-short/pkg-descr
diff options
context:
space:
mode:
Diffstat (limited to 'devel/hs-text-short/pkg-descr')
-rw-r--r--devel/hs-text-short/pkg-descr11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/hs-text-short/pkg-descr b/devel/hs-text-short/pkg-descr
new file mode 100644
index 000000000000..66cb96b1c1c6
--- /dev/null
+++ b/devel/hs-text-short/pkg-descr
@@ -0,0 +1,11 @@
+This package provides the ShortText type which is suitable for keeping many
+short strings in memory. This is similiar to how ShortByteString relates to
+ ByteString.
+
+The main difference between Text and ShortText is that ShortText uses UTF-8
+instead of UTF-16 internally and also doesn't support slicing (thereby
+saving 2 words). Consequently, the memory footprint of a (boxed) ShortText
+value is 4 words (2 words when unboxed) plus the length of the UTF-8 encoded
+payload.
+
+WWW: https://hackage.haskell.org/package/text-short