The text-short package

[ Tags: bsd3, data, library ] [ Propose Tags ]

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.


Versions 0.1, 0.1.1, 0.1.2
Change log
Dependencies base (>=4.7 && <4.12), binary (>=0.7.1 && <0.9), bytestring (>=0.10.4 && <0.11), deepseq (>=1.3 && <1.5), ghc-prim (>=0.3.1 && <0.6), hashable (>=1.2.6 && <1.3), semigroups (>=0.18.2 && <0.19), text (>=1.0 && <1.3) [details]
License BSD3
Author Herbert Valerio Riedel
Category Data
Bug tracker
Source repo head: git clone
Uploaded Sun Mar 4 21:11:00 UTC 2018 by HerbertValerioRiedel
Distributions Arch:0.1.2, Fedora:0.1.1, LTSHaskell:0.1.2, NixOS:0.1.2, Stackage:0.1.2, openSUSE:0.1.1
Downloads 5428 total (169 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-03-04 [all 1 reports]
Hackage Matrix CI


[Index] [Quick Jump]



Enable runtime-checks via assert


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees