unpacked-maybe-text: optional text that unpacks well
This library provides a specialization of `Maybe ShortText`.
When this is an unpacked field of data constructor, this will
result in fewer indirections and fewer allocations. This is
a micro-optimization, so think hard about whether or not this
will improve performance in a particular situation. A different
way to accomplish a similar goal is to forbid empty text and then
use the empty text value as a placeholder that signifies Nothing.
This alternative may or may not be an option depending on whether
or not the empty string is valid in your problem domain.
Downloads
- unpacked-maybe-text-0.1.0.1.tar.gz [browse] (Cabal source package)
 - Package description (as included in the package)
 
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
 
| Versions [RSS] | 0.1.0.0, 0.1.0.1 | 
|---|---|
| Change log | CHANGELOG.md | 
| Dependencies | base (>=4.10.1.0 && <5), bytestring (>=0.10.8 && <0.12), text-short (>=0.1.3 && <0.2) [details] | 
| License | BSD-3-Clause | 
| Copyright | 2019 Andrew Martin | 
| Author | Andrew Martin | 
| Maintainer | amartin@layer3com.com | 
| Category | Data | 
| Home page | https://github.com/byteverse/unpacked-maybe-text | 
| Bug tracker | https://github.com/byteverse/unpacked-maybe-text/issues | 
| Source repo | head: git clone git://github.com/byteverse/unpacked-maybe-text.git | 
| Uploaded | by l3c_amartin at 2024-01-31T20:48:17Z | 
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] | 
| Downloads | 788 total (7 in the last 30 days) | 
| Rating | (no votes yet) [estimated by Bayesian average] | 
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2024-01-31 [all 1 reports]  |