unpacked-maybe-text: optional text that unpacks well

[ bsd3, data, library ] [ Propose Tags ]

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.

Versions [RSS] [faq]
Dependencies base (>= && <5), bytestring (>=0.10.8 && <0.11), text-short (>=0.1.3 && <0.2) [details]
License BSD-3-Clause
Copyright 2019 Andrew Martin
Author Andrew Martin
Maintainer andrew.thaddeus@gmail.com
Category Data
Home page https://github.com/andrewthad/unpacked-maybe-text
Bug tracker https://github.com/andrewthad/unpacked-maybe-text/issues
Source repo head: git clone https://github.com/andrewthad/unpacked-maybe-numeric
Uploaded by andrewthad at 2019-09-30T13:20:49Z
Distributions NixOS:
Downloads 384 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-09-30 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees