| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 18:51:44 GMT
X-Served-By: cache-dfw-kdfw8210164-DFW, cache-bom-vanm7210051-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768675904.992049,VS0,VE837
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
text-short: Memory-efficient representation of Unicode text strings
text-short: Memory-efficient representation of Unicode text strings
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 doesn't support zero-copy slicing (thereby saving 2 words), and, compared to text-1.*, that it uses UTF-8 instead of UTF-16 internally. 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.
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| asserts | Enable runtime-checks via | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- text-short-0.1.6.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.6.1 |
|---|---|
| Change log | ChangeLog.md |
| Dependencies | base (>=4.12 && <4.23), binary (>=0.8.6.0 && <0.9), bytestring (>=0.10.8.2 && <0.13), deepseq (>=1.4.4.0 && <1.6), ghc-prim (>=0.5.3 && <0.14), hashable (>=1.4.4.0 && <1.6), template-haskell (>=2.14.0.0 && <2.25), text (>=1.2.3.1 && <1.3 || >=2.0 && <2.2) [details] |
| Tested with | ghc ==8.6.5 || ==8.8.3 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.6 || ==9.8.4 || ==9.10.2 || ==9.12.2 || ==9.14.1 |
| License | BSD-3-Clause |
| Author | Herbert Valerio Riedel |
| Maintainer | hvr@gnu.org |
| Uploaded | by phadej at 2026-01-04T20:24:58Z |
| Category | Data |
| Bug tracker | https://github.com/hvr/text-short/issues |
| Source repo | head: git clone https://github.com/hvr/text-short.git |
| Distributions | Arch:0.1.6, Debian:0.1.3, Fedora:0.1.6, LTSHaskell:0.1.6.1, NixOS:0.1.6, Stackage:0.1.6.1, openSUSE:0.1.6 |
| Reverse Dependencies | 61 direct, 8526 indirect [details] |
| Downloads | 40310 total (39 in the last 30 days) |
| Rating | 2.25 (votes: 2) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2026-01-04 [all 1 reports] |