diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-08-04 08:45:26 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-08-04 08:46:37 +0100 |
commit | ed0af4f683460b55de5b74c832312adaeff680e6 (patch) | |
tree | bd73cbb55fa9159dafb22fe57eb6e479d0c7cdee /dev-haskell/text-short/metadata.xml | |
parent | dev-haskell/only: new package, a depend of cassava-0.5 (diff) | |
download | gentoo-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.xml | 16 |
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 '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 zero-copy 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. + </longdescription> +</pkgmetadata> |