From 3cf7c3ef441822c889356fd1812ebf2944a59851 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 25 Aug 2020 10:45:55 +0100 Subject: gentoo resync : 25.08.2020 --- dev-haskell/text-short/metadata.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 dev-haskell/text-short/metadata.xml (limited to 'dev-haskell/text-short/metadata.xml') 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 @@ + + + + + haskell@gentoo.org + Gentoo Haskell + + + Enable runtime-checks via 'assert' + + + 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. + + -- cgit v1.2.3