summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-08-04 08:45:26 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-08-04 08:46:37 +0100
commited0af4f683460b55de5b74c832312adaeff680e6 (patch)
treebd73cbb55fa9159dafb22fe57eb6e479d0c7cdee /dev-haskell/text-short/metadata.xml
parentdev-haskell/only: new package, a depend of cassava-0.5 (diff)
downloadgentoo-ed0af4f683460b55de5b74c832312adaeff680e6.tar.gz
gentoo-ed0af4f683460b55de5b74c832312adaeff680e6.tar.bz2
gentoo-ed0af4f683460b55de5b74c832312adaeff680e6.zip
dev-haskell/text-short: new package, a depend of cassava-0.5
Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell/text-short/metadata.xml')
-rw-r--r--dev-haskell/text-short/metadata.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-haskell/text-short/metadata.xml b/dev-haskell/text-short/metadata.xml
new file mode 100644
index 000000000000..02b8c54225a2
--- /dev/null
+++ b/dev-haskell/text-short/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <use>
+ <flag name="asserts">Enable runtime-checks via 'assert'</flag>
+ </use>
+ <longdescription>
+ This package provides the &#39;ShortText&#39; type which is suitable for keeping many short strings in memory. This is similiar to how &#39;ShortByteString&#39; relates to &#39;ByteString&#39;.
+
+ The main difference between &#39;Text&#39; and &#39;ShortText&#39; is that &#39;ShortText&#39; uses UTF-8 instead of UTF-16 internally and also doesn&#39;t support zero-copy slicing (thereby saving 2 words). Consequently, the memory footprint of a (boxed) &#39;ShortText&#39; value is 4 words (2 words when unboxed) plus the length of the UTF-8 encoded payload.
+ </longdescription>
+</pkgmetadata>